Skip to content

Commit

Permalink
Update rewrite-java/src/main/java/org/openrewrite/java/search/FindMis…
Browse files Browse the repository at this point in the history
…singTypes.java

Co-authored-by: Tim te Beek <tim@moderne.io>
  • Loading branch information
traceyyoshima and timtebeek committed Dec 13, 2023
1 parent 5be4055 commit eb423e5
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 @@ public J.MethodInvocation visitMethodInvocation(J.MethodInvocation method, Execu
if (mi.getName().getType() != null && type != null && type != mi.getName().getType()) {
// The MethodDeclaration#name#type and the methodType field should be the same object.
// A different object in one implies a type has changed, either in the method signature or deeper in the type tree.
mi = SearchResult.found(mi, "MethodInvocation#name#type is not a referentially object to the MethodType of MethodInvocation.");
mi = SearchResult.found(mi, "MethodInvocation#name#type is not the same instance as the MethodType of MethodInvocation.");
}
}
return mi;
Expand Down

0 comments on commit eb423e5

Please sign in to comment.