Polishing
This commit is contained in:
parent
601c64a65c
commit
f6545cde38
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2012 the original author or authors.
|
* Copyright 2002-2013 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -45,7 +45,7 @@ final class MethodMetadataReadingVisitor extends MethodVisitor implements Method
|
||||||
|
|
||||||
private final int access;
|
private final int access;
|
||||||
|
|
||||||
private String declaringClassName;
|
private final String declaringClassName;
|
||||||
|
|
||||||
private final ClassLoader classLoader;
|
private final ClassLoader classLoader;
|
||||||
|
|
||||||
|
@ -53,8 +53,10 @@ final class MethodMetadataReadingVisitor extends MethodVisitor implements Method
|
||||||
|
|
||||||
private final Map<String, AnnotationAttributes> attributeMap = new LinkedHashMap<String, AnnotationAttributes>(2);
|
private final Map<String, AnnotationAttributes> attributeMap = new LinkedHashMap<String, AnnotationAttributes>(2);
|
||||||
|
|
||||||
|
|
||||||
public MethodMetadataReadingVisitor(String name, int access, String declaringClassName, ClassLoader classLoader,
|
public MethodMetadataReadingVisitor(String name, int access, String declaringClassName, ClassLoader classLoader,
|
||||||
MultiValueMap<String, MethodMetadata> methodMetadataMap) {
|
MultiValueMap<String, MethodMetadata> methodMetadataMap) {
|
||||||
|
|
||||||
super(SpringAsmInfo.ASM_VERSION);
|
super(SpringAsmInfo.ASM_VERSION);
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.access = access;
|
this.access = access;
|
||||||
|
@ -63,10 +65,11 @@ final class MethodMetadataReadingVisitor extends MethodVisitor implements Method
|
||||||
this.methodMetadataMap = methodMetadataMap;
|
this.methodMetadataMap = methodMetadataMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AnnotationVisitor visitAnnotation(final String desc, boolean visible) {
|
public AnnotationVisitor visitAnnotation(final String desc, boolean visible) {
|
||||||
String className = Type.getType(desc).getClassName();
|
String className = Type.getType(desc).getClassName();
|
||||||
methodMetadataMap.add(className, this);
|
this.methodMetadataMap.add(className, this);
|
||||||
return new AnnotationAttributesReadingVisitor(className, this.attributeMap, null, this.classLoader);
|
return new AnnotationAttributesReadingVisitor(className, this.attributeMap, null, this.classLoader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,4 +100,5 @@ final class MethodMetadataReadingVisitor extends MethodVisitor implements Method
|
||||||
public String getDeclaringClassName() {
|
public String getDeclaringClassName() {
|
||||||
return this.declaringClassName;
|
return this.declaringClassName;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue