Adds a double to the constant pool of the class being build. Does nothing if the constant pool already contains a similar item. @param value the double value. @return a new or already existing double item.
(final double value)
| 845 | */ |
| 846 | |
| 847 | private Item newDouble (final double value) { |
| 848 | key.set(value); |
| 849 | Item result = get(key); |
| 850 | if (result == null) { |
| 851 | pool.put1(DOUBLE).put8(Double.doubleToLongBits(value)); |
| 852 | result = new Item(index, key); |
| 853 | put(result); |
| 854 | index += 2; |
| 855 | } |
| 856 | return result; |
| 857 | } |
| 858 | |
| 859 | /** |
| 860 | * Adds a string to the constant pool of the class being build. Does nothing |