MCPcopy Create free account
hub / github.com/beanshell/beanshell / newDouble

Method newDouble

src/bsh/org/objectweb/asm/ClassWriter.java:847–857  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 1

newCstMethod · 0.95

Calls 5

getMethod · 0.95
putMethod · 0.95
put8Method · 0.80
put1Method · 0.80
setMethod · 0.45

Tested by

no test coverage detected