MCPcopy Create free account
hub / github.com/apache/poi / checkKeyAndValue

Method checkKeyAndValue

src/java/org/apache/poi/util/BinaryTree.java:1249–1253  ·  view source on GitHub ↗

check a key and a value for validity (non-null and implements Comparable) @param key the key to be checked @param value the value to be checked @exception NullPointerException if key or value is null @exception ClassCastException if key or value is not Comparable

(Object key, Object value)

Source from the content-addressed store, hash-verified

1247 * @exception ClassCastException if key or value is not Comparable
1248 */
1249 private static void checkKeyAndValue(Object key, Object value)
1250 {
1251 checkKey(key);
1252 checkValue(value);
1253 }
1254
1255 /**
1256 * increment the modification count -- used to check for

Callers 1

putMethod · 0.95

Calls 2

checkKeyMethod · 0.95
checkValueMethod · 0.95

Tested by

no test coverage detected