@@ -90,10 +90,11 @@ private void reobfuscate() throws IOException {
9090 if (entry .isDirectory ()) {
9191 return false ;
9292 }
93- String className = entry .getName ().replace (".class" , "" );
93+ String obfClassName = entry .getName ().replace (".class" , "" );
9494 // Force inner classes to compare outer class hash
95- int index ;
96- if ((index = className .indexOf ('$' )) != -1 ) {
95+ String className = obfClassName ;
96+ int index = className .indexOf ('$' );
97+ if (index != -1 ) {
9798 className = className .substring (0 , index );
9899 }
99100 String deobfName = reversedNames .get (className );
@@ -102,10 +103,11 @@ private void reobfuscate() throws IOException {
102103 }
103104 String hash = originalHashes .get (deobfName );
104105 String hashModified = recompHashes .get (deobfName );
105- if (hash == null ) {
106- return true ;
106+ boolean extract = (hash == null ) || !hash .equals (hashModified );
107+ if (extract ) {
108+ System .out .println (reversedNames .get (obfClassName ) + " : " + obfClassName );
107109 }
108- else return ! hash . equals ( hashModified ) ;
110+ return extract ;
109111 });
110112 }
111113 }
@@ -158,9 +160,6 @@ private void modifyClassMappings(Mappings mappings, List<String> classNames, boo
158160
159161 private static Map <String , String > getPackageMappings (Map <String , String > classMappings ) {
160162 Map <String , String > packageMappings = new HashMap <>();
161- for (Entry <String , String > entry : classMappings .entrySet ()) {
162- System .out .println (entry .getKey () + " : " + entry .getValue ());
163- }
164163 for (Entry <String , String > entry : classMappings .entrySet ()) {
165164 int i1 = entry .getKey ().indexOf ('/' );
166165 int i2 = entry .getValue ().indexOf ('/' );
0 commit comments