Skip to content

Commit

Permalink
Replace isNull check with nonNull
Browse files Browse the repository at this point in the history
  • Loading branch information
BartChris committed Jan 21, 2025
1 parent 0c484fa commit f228de6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ public void preserve() throws InvalidMetadataValueException, NoSuchMetadataField
metadata.addAll(row.getMetadataWithFilledValues());
}
}
if (!Objects.isNull(hiddenMetadata) && !hiddenMetadata.isEmpty()) {
if (Objects.nonNull(hiddenMetadata) && !hiddenMetadata.isEmpty()) {
for (Metadata hidden : hiddenMetadata) {
if (hidden instanceof MetadataEntry) {
MetadataEntry entry = (MetadataEntry) hidden;
Expand Down

0 comments on commit f228de6

Please sign in to comment.