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)
| 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 |
no test coverage detected