java-decompiler: renamer interface cleaned
[idea/community.git] / plugins / java-decompiler / engine / src / org / jetbrains / java / decompiler / main / ClassesProcessor.java
index 2f20ece8ecb0c9cda8c7ab4e5c32bdc92e5f5238..80d3493f759b976d43c5cf1b9430d8969c2ddb04 100644 (file)
@@ -83,8 +83,8 @@ public class ClassesProcessor {
               }
               else if (simpleName != null && DecompilerContext.getOption(IFernflowerPreferences.RENAME_ENTITIES)) {
                 IIdentifierRenamer renamer = DecompilerContext.getPoolInterceptor().getHelper();
-                if (renamer.toBeRenamed(IIdentifierRenamer.ELEMENT_CLASS, simpleName, null, null)) {
-                  simpleName = renamer.getNextClassname(innername, simpleName);
+                if (renamer.toBeRenamed(IIdentifierRenamer.Type.ELEMENT_CLASS, simpleName, null, null)) {
+                  simpleName = renamer.getNextClassName(innername, simpleName);
                   mapNewSimpleNames.put(innername, simpleName);
                 }
               }