Skip to content

Commit

Permalink
docs: 添加黑名单判断注释
Browse files Browse the repository at this point in the history
  • Loading branch information
15911075183ma committed Nov 21, 2023
1 parent fa1da36 commit d4150b5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import java.security.ProtectionDomain;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentSkipListSet;

import static org.apache.commons.io.FileUtils.writeByteArrayToFile;
import static org.objectweb.asm.ClassWriter.COMPUTE_FRAMES;
Expand Down Expand Up @@ -162,7 +161,7 @@ public byte[] transform(final ClassLoader loader,
ScaScanner.scanForSCA(location.getFile(), internalClassName);
}
}

//判断是否可以hook ,true可以 false不可以
if (null == classBeingRedefined && !configMatcher.canHook(internalClassName, this.policyManager)) {
return null;
}
Expand Down

0 comments on commit d4150b5

Please sign in to comment.