Using 'desc' instead of 'erasedSignature'
This commit is contained in:
+1
-1
@@ -114,7 +114,7 @@ public class InterceptionInstrumenter {
|
|||||||
field.getDeclaringClass().getSimpleName() + "." + field.getName(),
|
field.getDeclaringClass().getSimpleName() + "." + field.getName(),
|
||||||
classPattern,
|
classPattern,
|
||||||
compilePattern(methodName),
|
compilePattern(methodName),
|
||||||
compilePattern(annotation.erasedSignature()),
|
compilePattern(annotation.methodDesc()),
|
||||||
annotation.allowMultipleMatches(),
|
annotation.allowMultipleMatches(),
|
||||||
enterData,
|
enterData,
|
||||||
normalReturnData,
|
normalReturnData,
|
||||||
|
|||||||
+2
-2
@@ -30,8 +30,8 @@ public @interface MethodInterceptor {
|
|||||||
// regexp, if omitted, field name is used
|
// regexp, if omitted, field name is used
|
||||||
String methodName() default "";
|
String methodName() default "";
|
||||||
|
|
||||||
// regexp
|
// regexp for method descriptor, like (ILjava/lang/Object;)V for void foo(int, Object)
|
||||||
String erasedSignature() default "";
|
String methodDesc() default "";
|
||||||
|
|
||||||
// if this is false, an exception is thrown when more than one method in the same class matches
|
// if this is false, an exception is thrown when more than one method in the same class matches
|
||||||
boolean allowMultipleMatches() default false;
|
boolean allowMultipleMatches() default false;
|
||||||
|
|||||||
Reference in New Issue
Block a user