Skip to content

Commit

Permalink
initial value of matchFound was never used (warning)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Sandee committed Mar 21, 2018
1 parent 627a7b9 commit 5ef7c16
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ public boolean matches(ExpressionTree tree, VisitorState state) {
private static Matcher<MethodInvocationTree> matcher(List<String> classesWithLifecycle) {
return (Matcher<MethodInvocationTree>) (tree, state) -> {

boolean matchFound = false;
ExpressionTree methodSelectTree = tree.getMethodSelect();

// MemberSelectTree is used only for member access expression.
Expand All @@ -164,7 +163,7 @@ private static Matcher<MethodInvocationTree> matcher(List<String> classesWithLif
return false;
}

matchFound = SUBSCRIBE_MATCHERS
boolean matchFound = SUBSCRIBE_MATCHERS
.stream()
.map(methodNameMatcher -> methodNameMatcher.matches(tree, state))
.filter(Boolean::booleanValue) // Filtering the method invocation with name subscribe
Expand Down

0 comments on commit 5ef7c16

Please sign in to comment.