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

Method newLong

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

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

(final long value)

Source from the content-addressed store, hash-verified

825 */
826
827 private Item newLong (final long value) {
828 key.set(value);
829 Item result = get(key);
830 if (result == null) {
831 pool.put1(LONG).put8(value);
832 result = new Item(index, key);
833 put(result);
834 index += 2;
835 }
836 return result;
837 }
838
839 /**
840 * Adds a double 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