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

Method newInteger

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

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

(final int value)

Source from the content-addressed store, hash-verified

787 */
788
789 private Item newInteger (final int value) {
790 key.set(value);
791 Item result = get(key);
792 if (result == null) {
793 pool.put1(INT).put4(value);
794 result = new Item(index++, key);
795 put(result);
796 }
797 return result;
798 }
799
800 /**
801 * Adds a float 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