Skip to content

Commit

Permalink
Fix Sonar warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasz-tylenda-sonarsource committed Dec 10, 2024
1 parent 33143bd commit df2b24c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
import org.sonar.plugins.java.api.cfg.ControlFlowGraph;
import org.sonar.plugins.java.api.semantic.MethodMatchers;
import org.sonar.plugins.java.api.semantic.Symbol;
import org.sonar.plugins.java.api.semantic.SymbolMetadata;
import org.sonar.plugins.java.api.semantic.Type;
import org.sonar.plugins.java.api.tree.Arguments;
import org.sonar.plugins.java.api.tree.AssignmentExpressionTree;
Expand Down Expand Up @@ -488,7 +487,7 @@ private static boolean isAnnotatedLombokCleanup(IdentifierTree tree) {
.metadata()
.annotations()
.stream()
.anyMatch(annotation -> annotation.symbol().type().fullyQualifiedName().equals("lombok.Cleanup"));
.anyMatch(annotation -> "lombok.Cleanup".equals(annotation.symbol().type().fullyQualifiedName()));
}
}

Expand Down

0 comments on commit df2b24c

Please sign in to comment.