Toggle navigation
Home
com.google.errorprone.matchers.MultiMatcher to com.google.errorprone.matchers.Matcher
No. of Instances - 4
No. of Commits - 2
No. of Projects - {'error-prone'}
Hierarchy/Composition: R_SUPER_T
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Cascading Type Change (Different)
MethodTree
to
LiteralTree
LiteralTree
to
MethodTree
Add or Remove Method invocation
super.visitMethod(node,visitorState)
to
super.visitLiteral(node,visitorState)
super.visitLiteral(node,visitorState)
to
super.visitMethod(node,visitorState)
Update Anonymous class
{ private boolean matched=false; @Override public Void visitMethod( MethodTree node, VisitorState visitorState){ visitorState=visitorState.withPath(getCurrentPath()); if (toMatch.matches(node,visitorState)) { matched=true; } return super.visitMethod(node,visitorState); } @Override public void assertDone(){ assertEquals(matched,shouldMatch); } }
to
{ private boolean matched=false; @Override public Void visitLiteral( LiteralTree node, VisitorState visitorState){ visitorState=visitorState.withPath(getCurrentPath()); if (toMatch.matches(node,visitorState)) { matched=true; } return super.visitLiteral(node,visitorState); } @Override void assertDone(){ assertEquals(matched,shouldMatch); } }
{ private boolean matched=false; @Override public Void visitLiteral( LiteralTree node, VisitorState visitorState){ visitorState=visitorState.withPath(getCurrentPath()); if (toMatch.matches(node,visitorState)) { matched=true; } return super.visitLiteral(node,visitorState); } @Override void assertDone(){ assertEquals(matched,shouldMatch); } }
to
{ private boolean matched=false; @Override public Void visitMethod( MethodTree node, VisitorState visitorState){ visitorState=visitorState.withPath(getCurrentPath()); if (toMatch.matches(node,visitorState)) { matched=true; } return super.visitMethod(node,visitorState); } @Override public void assertDone(){ assertEquals(matched,shouldMatch); } }
Rename Variable
ANNOTATED_WITH_GUICE_INJECT_MATCHER
to
FINAL_FIELD_WITH_GUICE_INJECT