You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If method already has the name it should have, then nothing to be done
108
-
if (expectedMethodName.equals(actualMethodName)) {
99
+
if (expectedMethodName.equals(method.getSimpleName())) {
109
100
returnmethod;
110
101
}
111
102
@@ -115,23 +106,10 @@ public J.MethodDeclaration visitMethodDeclaration(J.MethodDeclaration method, Ex
115
106
if (doNotRename.contains(expectedMethodName)) {
116
107
returnmethod;
117
108
}
118
-
//WON'T DO: there is a rare edge case, that is not addressed yet.
119
-
// If `getFoo()` returns `ba` and `getBa()` returns `foo` then neither will be renamed.
120
-
// This could be fixed by compiling a list of planned changes and doing a soundness check (and not renaming sequentially, or rather introducing temporary method names)
121
-
// At this point I don't think it's worth the effort.
0 commit comments