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

Method newFloat

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

Adds a float to the constant pool of the class being build. Does nothing if the constant pool already contains a similar item. @param value the float value. @return a new or already existing float item.

(final float value)

Source from the content-addressed store, hash-verified

806 */
807
808 private Item newFloat (final float value) {
809 key.set(value);
810 Item result = get(key);
811 if (result == null) {
812 pool.put1(FLOAT).put4(Float.floatToIntBits(value));
813 result = new Item(index++, key);
814 put(result);
815 }
816 return result;
817 }
818
819 /**
820 * Adds a long to the constant pool of the class being build. Does nothing if

Callers 1

newCstMethod · 0.95

Calls 5

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

Tested by

no test coverage detected