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:
@@ -70,6 +70,11 @@ public class BytesChronicleMap extends AbstractChronicleMap<Bytes, Bytes> {
|
||||
return context;
|
||||
}
|
||||
|
||||
@Override
|
||||
void checkValue(Bytes value) {
|
||||
Objects.requireNonNull(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<Bytes> keyClass() {
|
||||
return Bytes.class;
|
||||
|
||||
Reference in New Issue
Block a user