diff --git a/sandbox-api/src/main/java/com/alibaba/jvm/sandbox/api/listener/ext/EventWatchBuilder.java b/sandbox-api/src/main/java/com/alibaba/jvm/sandbox/api/listener/ext/EventWatchBuilder.java index 6eedaa19..57d9dbf7 100644 --- a/sandbox-api/src/main/java/com/alibaba/jvm/sandbox/api/listener/ext/EventWatchBuilder.java +++ b/sandbox-api/src/main/java/com/alibaba/jvm/sandbox/api/listener/ext/EventWatchBuilder.java @@ -548,7 +548,7 @@ public IBuildingForBehavior withAccess(final int access) { @Override public IBuildingForBehavior withEmptyParameterTypes() { - withParameterTypes.add(new String[]{}); + withParameterTypes.add(); return this; } diff --git a/sandbox-core/src/test/java/com/alibaba/jvm/sandbox/qatest/core/util/CalculatorHelper.java b/sandbox-core/src/test/java/com/alibaba/jvm/sandbox/qatest/core/util/CalculatorHelper.java index f1cfd041..296963fa 100644 --- a/sandbox-core/src/test/java/com/alibaba/jvm/sandbox/qatest/core/util/CalculatorHelper.java +++ b/sandbox-core/src/test/java/com/alibaba/jvm/sandbox/qatest/core/util/CalculatorHelper.java @@ -133,9 +133,7 @@ public static boolean IsSpecalMethodEnvet(Event event, String javaMethodeName){ public static boolean isSpecalMethod(Event event, String javaMethodeName){ if (event instanceof BeforeEvent){ BeforeEvent beforeEvent = (BeforeEvent) event; - if (beforeEvent.javaMethodName.equalsIgnoreCase(javaMethodeName)){ - return true; - } + return beforeEvent.javaMethodName.equalsIgnoreCase(javaMethodeName); } return false; } diff --git a/sandbox-core/src/test/java/com/alibaba/jvm/sandbox/qatest/core/util/matcher/target/ChildClass.java b/sandbox-core/src/test/java/com/alibaba/jvm/sandbox/qatest/core/util/matcher/target/ChildClass.java index cd3a3e60..c89634a0 100644 --- a/sandbox-core/src/test/java/com/alibaba/jvm/sandbox/qatest/core/util/matcher/target/ChildClass.java +++ b/sandbox-core/src/test/java/com/alibaba/jvm/sandbox/qatest/core/util/matcher/target/ChildClass.java @@ -96,7 +96,7 @@ public void methodOfArrayArguments( @InheritedAnnotation - public void methodOfChildClassWithAnnotation() throws IllegalStateException, RuntimeException { + public void methodOfChildClassWithAnnotation() throws RuntimeException { }