Skip to content

Commit

Permalink
fix Sonarlint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kwin committed Jul 24, 2024
1 parent 7cb0636 commit 97ad421
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Optional<Map.Entry<Calendar, String>> extractDate(@NotNull DocViewNode2 node, Pr
} else {
// check for auto-created property
Collection<String> types = new HashSet<>();
node.getPrimaryType().map(t -> types.add(t));
node.getPrimaryType().ifPresent(types::add);
types.addAll(node.getMixinTypes());
if (propertyName.getAutoCreatedTypes().stream().anyMatch(types::contains)) {
dateAndLabel = new SimpleEntry<>(Calendar.getInstance(), "auto created " + propertyName.getName().toString());
Expand Down

0 comments on commit 97ad421

Please sign in to comment.