@FindbugsSuppressWarnings("PZLA_PREFER_ZERO_LENGTH_ARRAYS") private int[] tryWriteEntry(K key, int hash, V value, int metadata) { if (hashtable == null) { throw new NullPointerException(); } else if (hashtable == DESTROYED_TABLE) { throw new IllegalStateException("Offheap map/cache has been destroyed"); } else if ((metadata & RESERVED_STATUS_BITS) == 0) { Long encoding = storageEngine.writeMapping(key, value, hash, metadata); if (encoding == null) { return null; } else { return createEntry(hash, encoding, metadata); } } else { throw new IllegalArgumentException("Invalid metadata for key '" + key + "' : " + Integer.toBinaryString(metadata)); } }
@FindbugsSuppressWarnings("PZLA_PREFER_ZERO_LENGTH_ARRAYS") private int[] tryWriteEntry(K key, int hash, V value, int metadata) { if (hashtable == null) { throw new NullPointerException(); } else if (hashtable == DESTROYED_TABLE) { throw new IllegalStateException("Offheap map/cache has been destroyed"); } else if ((metadata & RESERVED_STATUS_BITS) == 0) { Long encoding = storageEngine.writeMapping(key, value, hash, metadata); if (encoding == null) { return null; } else { return createEntry(hash, encoding, metadata); } } else { throw new IllegalArgumentException("Invalid metadata for key '" + key + "' : " + Integer.toBinaryString(metadata)); } }