File tree Expand file tree Collapse file tree
jadx-core/src/main/java/jadx/core/dex/visitors/rename Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ private static void checkNames(RootNode root) {
7272 pkg .setLeafAlias (aliasProvider .forPackage (pkg ), false );
7373 pkgUpdated = true ;
7474 // verify the new name also doesn't conflict
75- while (!pkgPaths .add (pkg .getAliasPkgInfo ().getFullName ().toLowerCase ())) {
75+ if (!pkgPaths .add (pkg .getAliasPkgInfo ().getFullName ().toLowerCase ())) {
7676 pkg .setLeafAlias (aliasProvider .forPackage (pkg ), false );
7777 }
7878 }
@@ -90,7 +90,7 @@ private static void checkNames(RootNode root) {
9090 clsInfo .changeShortName (aliasProvider .forClass (cls ));
9191 cls .addAttr (new RenameReasonAttr (cls ).append ("case insensitive filesystem" ));
9292 // verify the new name also doesn't conflict
93- while (!clsFullPaths .add (clsInfo .getAliasFullPath ().toLowerCase ())) {
93+ if (!clsFullPaths .add (clsInfo .getAliasFullPath ().toLowerCase ())) {
9494 clsInfo .changeShortName (aliasProvider .forClass (cls ));
9595 }
9696 }
You can’t perform that action at this time.
0 commit comments