Added eager nullability and type checks of values and functions passed to ChronicleMap, if is probable that they won't be passed (and checked) inside contexts, if, say the key is absent in the map

This commit is contained in:
leventov
2015-01-19 07:06:21 +07:00
parent d897891bfb
commit 4af4fce33c
4 changed files with 21 additions and 0 deletions
@@ -40,4 +40,9 @@ final class Objects {
o != null && builder.getClass() == o.getClass() &&
builder.toString().equals(o.toString());
}
static void requireNonNull(Object obj) {
if (obj == null)
throw new NullPointerException();
}
}