type migration:fixed typo
authorDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Mon, 15 Aug 2016 17:20:22 +0000 (20:20 +0300)
committerDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Tue, 16 Aug 2016 07:08:35 +0000 (10:08 +0300)
java/java-impl/src/com/intellij/refactoring/typeMigration/TypeMigrationLabeler.java

index 5bba9d5f0ebe845f4fec3d6f00ea821d60d4a950..a5bfa290b327f3a42eb62a56863ca06e72d0b7ab 100644 (file)
@@ -735,7 +735,7 @@ public class TypeMigrationLabeler {
         if (getter.isEquivalentTo(method)) {
           final String suggestedName = GenerateMembersUtil.suggestGetterName(field.getName(), migrationType, method.getProject());
           if (!suggestedName.equals(method.getName())) {
-            if (getter.getContainingClass().findMethodsByName(suggestedName, true).length == 0) {
+            if (getter.getContainingClass().findMethodsByName(suggestedName, true).length != 0) {
               return null;
             }
             return suggestedName;