Skip to content

Commit

Permalink
Flip equals to get rid of immediate NPE in #507
Browse files Browse the repository at this point in the history
To followup with a more thorough fix if we learn more about the usage there.
  • Loading branch information
timtebeek committed Mar 5, 2024
1 parent feaa2f9 commit 8f1f7b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ private static boolean isContinueParameterStatement(Statement statement) {

if (CONTINUE_PARAMETER_MATCHER.matches(m)) {
if (m.getArguments().get(0) instanceof J.Literal) {
return ((J.Literal) m.getArguments().get(0)).getValue().equals("continue");
return "continue".equals(((J.Literal) m.getArguments().get(0)).getValue());
}
}
}
Expand Down

0 comments on commit 8f1f7b9

Please sign in to comment.