Skip to content

Commit

Permalink
fix spotbugs
Browse files Browse the repository at this point in the history
  • Loading branch information
CarstenHollmann committed Dec 5, 2022
1 parent 5fbcdbc commit 18068e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ public FullInspireExtendedCapabilities addMandatoryKeyword(InspireMandatoryKeywo

@Override
public boolean isSetMandatoryKeyword() {
return getMandatoryKeywords() != null;
return !getMandatoryKeywords().isEmpty();
}

@Override
Expand All @@ -402,7 +402,6 @@ public List<InspireKeyword> getKeywords() {
public FullInspireExtendedCapabilities setKeywords(Collection<InspireKeyword> keywords) {
this.keywords.clear();
if (CollectionHelper.isNotEmpty(keywords)) {

this.keywords.addAll(keywords);
}
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public T addValue(Value<?> value) {
}

public boolean isSetValue() {
return getValue() != null;
return !getValue().isEmpty();
}

/**
Expand Down

0 comments on commit 18068e0

Please sign in to comment.