mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user