(K key, V value)
| 247 | } |
| 248 | |
| 249 | private int safeSizeOf(K key, V value) { |
| 250 | int result = sizeOf(key, value); |
| 251 | if (result < 0) { |
| 252 | throw new IllegalStateException("Negative size: " + key + "=" + value); |
| 253 | } |
| 254 | return result; |
| 255 | } |
| 256 | |
| 257 | /** |
| 258 | * Returns the size of the entry for {@code key} and {@code value} in |
no test coverage detected