1 package mockit.asm.constantPool;
2
3 import static mockit.asm.jvmConstants.ConstantPoolTypes.NAME_TYPE;
4
5 import edu.umd.cs.findbugs.annotations.NonNull;
6
7 import org.checkerframework.checker.index.qual.NonNegative;
8
9 public final class NameAndTypeItem extends TypeOrMemberItem {
10 public NameAndTypeItem(@NonNegative int index) {
11 super(index);
12 type = NAME_TYPE;
13 }
14
15 NameAndTypeItem(@NonNegative int index, @NonNull NameAndTypeItem item) {
16 super(index, item);
17 }
18
19
20
21
22 public void set(@NonNull String name, @NonNull String desc) {
23 setValuesAndHashcode(name, desc, 1);
24 }
25 }