Kaynağa Gözat

修复war包指定解密lib包时,不生效的问题

JustryDeng 3 yıl önce
ebeveyn
işleme
519f479348

+ 4 - 4
class-winter-core/src/main/java/winter/com/ideaaedi/classwinter/Reverses.java

@@ -116,7 +116,7 @@ public class Reverses {
                     }
                     
                     // 如果不是强制指定解密该projectPath,那么解析其projectPath
-                    if (!isNeedTryDecrypt(decryptProjectPathPrefixSet, projectPath)) {
+                    if (!ifPointToDecrypt(decryptProjectPathPrefixSet, projectPath)) {
                         try {
                             projectPath = JarUtil.getRootPath(projectPath);
                         } catch (ClassWinterException e) {
@@ -136,7 +136,7 @@ public class Reverses {
                         }
                     }
                     if (decryptProjectPathPrefixSet.size() > 0) {
-                        if (!isNeedTryDecrypt(decryptProjectPathPrefixSet, projectPath)) {
+                        if (!ifPointToDecrypt(decryptProjectPathPrefixSet, projectPath)) {
                             return classfileBuffer;
                         }
                     }
@@ -297,9 +297,9 @@ public class Reverses {
     }
     
     /**
-     * 是否要试着解密projectPath指向的代码
+     * 是否指定了要试着解密projectPath指向的代码
      */
-    private static boolean isNeedTryDecrypt(Set<String> decryptProjectPathPrefixSet, String projectPath) {
+    private static boolean ifPointToDecrypt(Set<String> decryptProjectPathPrefixSet, String projectPath) {
         boolean needTryDecrypt = false;
         for (String decryptProjectPathPrefix : decryptProjectPathPrefixSet) {
             if (projectPath != null && projectPath.startsWith(decryptProjectPathPrefix)) {