From a30a24f578ff7032a9c64f5c39b6b4a152f76eff Mon Sep 17 00:00:00 2001 From: yoloyyh <1764163852@qq.com> Date: Fri, 11 Oct 2024 16:31:02 +0800 Subject: [PATCH] remove unused log --- .../src/main/java/com/security/smith/SmithProbe.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rasp/jvm/JVMProbe/src/main/java/com/security/smith/SmithProbe.java b/rasp/jvm/JVMProbe/src/main/java/com/security/smith/SmithProbe.java index dfc6905e9..15660190a 100644 --- a/rasp/jvm/JVMProbe/src/main/java/com/security/smith/SmithProbe.java +++ b/rasp/jvm/JVMProbe/src/main/java/com/security/smith/SmithProbe.java @@ -383,12 +383,12 @@ private boolean isBypassHookClass(String className) { } public boolean isFunctionEnabled(int classId, int methodId) { - String key = classId + "-" + methodId; - Set types = hookTypes.get(key); - + if (switchConfig == null || switchConfig.isEmpty()) { return true; } + String key = classId + "-" + methodId; + Set types = hookTypes.get(key); if (types != null) { for (String type : types) {