< prev index next >

src/java.base/share/classes/jdk/internal/org/objectweb/asm/FieldVisitor.java

Print this page
rev 47452 : imported patch jdk-new-asmv6.patch

*** 67,77 **** */ public abstract class FieldVisitor { /** * The ASM API version implemented by this visitor. The value of this field ! * must be one of {@link Opcodes#ASM4} or {@link Opcodes#ASM5}. */ protected final int api; /** * The field visitor to which this visitor must delegate method calls. May --- 67,77 ---- */ public abstract class FieldVisitor { /** * The ASM API version implemented by this visitor. The value of this field ! * must be one of {@link Opcodes#ASM4}, {@link Opcodes#ASM5} or {@link Opcodes#ASM6}. */ protected final int api; /** * The field visitor to which this visitor must delegate method calls. May
*** 82,92 **** /** * Constructs a new {@link FieldVisitor}. * * @param api * the ASM API version implemented by this visitor. Must be one ! * of {@link Opcodes#ASM4} or {@link Opcodes#ASM5}. */ public FieldVisitor(final int api) { this(api, null); } --- 82,92 ---- /** * Constructs a new {@link FieldVisitor}. * * @param api * the ASM API version implemented by this visitor. Must be one ! * of {@link Opcodes#ASM4}, {@link Opcodes#ASM5} or {@link Opcodes#ASM6}. */ public FieldVisitor(final int api) { this(api, null); }
*** 93,109 **** /** * Constructs a new {@link FieldVisitor}. * * @param api * the ASM API version implemented by this visitor. Must be one ! * of {@link Opcodes#ASM4} or {@link Opcodes#ASM5}. * @param fv * the field visitor to which this visitor must delegate method * calls. May be null. */ public FieldVisitor(final int api, final FieldVisitor fv) { ! if (api != Opcodes.ASM4 && api != Opcodes.ASM5) { throw new IllegalArgumentException(); } this.api = api; this.fv = fv; } --- 93,109 ---- /** * Constructs a new {@link FieldVisitor}. * * @param api * the ASM API version implemented by this visitor. Must be one ! * of {@link Opcodes#ASM4}, {@link Opcodes#ASM5} or {@link Opcodes#ASM6}. * @param fv * the field visitor to which this visitor must delegate method * calls. May be null. */ public FieldVisitor(final int api, final FieldVisitor fv) { ! if (api < Opcodes.ASM4 || api > Opcodes.ASM6) { throw new IllegalArgumentException(); } this.api = api; this.fv = fv; }
< prev index next >