Skip to content

Commit

Permalink
Issue 986: sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
walaniam committed Jan 15, 2025
1 parent 4694503 commit 8ca9f2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private void assertVariableDeclarator(CompilationUnit requestClass, String field
.findAll(FieldDeclaration.class)
.stream()
.flatMap(field -> field.getChildNodes().stream())
.filter(node -> node instanceof VariableDeclarator)
.filter(VariableDeclarator.class::isInstance)
.map(VariableDeclarator.class::cast)
.filter(declarator -> declarator.getName().getIdentifier().equals(fieldName))
.findFirst()
Expand Down

0 comments on commit 8ca9f2b

Please sign in to comment.