From d4150b585946ff0a09f50c76521427015c62602d Mon Sep 17 00:00:00 2001 From: 15911075183ma <141103706+15911075183ma@users.noreply.github.com> Date: Tue, 21 Nov 2023 16:24:32 +0800 Subject: [PATCH] =?UTF-8?q?docs=EF=BC=9A=20=E6=B7=BB=E5=8A=A0=E9=BB=91?= =?UTF-8?q?=E5=90=8D=E5=8D=95=E5=88=A4=E6=96=AD=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dongtai/iast/core/bytecode/IastClassFileTransformer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dongtai-core/src/main/java/io/dongtai/iast/core/bytecode/IastClassFileTransformer.java b/dongtai-core/src/main/java/io/dongtai/iast/core/bytecode/IastClassFileTransformer.java index 1aff694d6..602435cee 100755 --- a/dongtai-core/src/main/java/io/dongtai/iast/core/bytecode/IastClassFileTransformer.java +++ b/dongtai-core/src/main/java/io/dongtai/iast/core/bytecode/IastClassFileTransformer.java @@ -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; @@ -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; }