Using 'desc' instead of 'erasedSignature'

This commit is contained in:
Andrey Breslav
2013-05-13 16:07:16 +04:00
parent 9efc885c37
commit d689cc0741
2 changed files with 3 additions and 3 deletions
@@ -114,7 +114,7 @@ public class InterceptionInstrumenter {
field.getDeclaringClass().getSimpleName() + "." + field.getName(),
classPattern,
compilePattern(methodName),
compilePattern(annotation.erasedSignature()),
compilePattern(annotation.methodDesc()),
annotation.allowMultipleMatches(),
enterData,
normalReturnData,
@@ -30,8 +30,8 @@ public @interface MethodInterceptor {
// regexp, if omitted, field name is used
String methodName() default "";
// regexp
String erasedSignature() default "";
// regexp for method descriptor, like (ILjava/lang/Object;)V for void foo(int, Object)
String methodDesc() default "";
// if this is false, an exception is thrown when more than one method in the same class matches
boolean allowMultipleMatches() default false;