src/share/classes/jdk/internal/org/objectweb/asm/commons/RemappingAnnotationAdapter.java
Print this page
@@ -69,22 +69,17 @@
*/
public class RemappingAnnotationAdapter extends AnnotationVisitor {
protected final Remapper remapper;
- public RemappingAnnotationAdapter(
- final AnnotationVisitor av,
- final Remapper remapper)
- {
- this(Opcodes.ASM4, av, remapper);
+ public RemappingAnnotationAdapter(final AnnotationVisitor av,
+ final Remapper remapper) {
+ this(Opcodes.ASM5, av, remapper);
}
- protected RemappingAnnotationAdapter(
- final int api,
- final AnnotationVisitor av,
- final Remapper remapper)
- {
+ protected RemappingAnnotationAdapter(final int api,
+ final AnnotationVisitor av, final Remapper remapper) {
super(api, av);
this.remapper = remapper;
}
@Override
@@ -98,18 +93,16 @@
}
@Override
public AnnotationVisitor visitAnnotation(String name, String desc) {
AnnotationVisitor v = av.visitAnnotation(name, remapper.mapDesc(desc));
- return v == null ? null : (v == av
- ? this
+ return v == null ? null : (v == av ? this
: new RemappingAnnotationAdapter(v, remapper));
}
@Override
public AnnotationVisitor visitArray(String name) {
AnnotationVisitor v = av.visitArray(name);
- return v == null ? null : (v == av
- ? this
+ return v == null ? null : (v == av ? this
: new RemappingAnnotationAdapter(v, remapper));
}
}