1
2
3
4
5
6 package mockit.asm.constantPool;
7
8 import static mockit.asm.jvmConstants.ConstantPoolTypes.FLOAT;
9
10 import edu.umd.cs.findbugs.annotations.NonNull;
11
12 import org.checkerframework.checker.index.qual.NonNegative;
13
14 public final class FloatItem extends IntValueItem {
15 public FloatItem(@NonNegative int index) {
16 super(index);
17 type = FLOAT;
18 }
19
20 FloatItem(@NonNegative int index, @NonNull FloatItem item) {
21 super(index, item);
22 }
23
24
25
26
27 public void set(float value) {
28 int intValue = Float.floatToRawIntBits(value);
29 setValue(intValue);
30 }
31 }