DATAREDIS-992 - Fix Bitwise AND to logical AND in AbstractOperations.

Bitwise AND was used instead of logical AND.

Original pull request: #454.
This commit is contained in:
Shyam Anand
2019-06-11 22:36:36 +05:30
committed by Mark Paluch
parent f77eccbc16
commit 4ada49d88b

View File

@@ -178,7 +178,7 @@ abstract class AbstractOperations<K, V> {
@SuppressWarnings("unchecked")
<HV> byte[] rawHashValue(HV value) {
if (hashValueSerializer() == null & value instanceof byte[]) {
if (hashValueSerializer() == null && value instanceof byte[]) {
return (byte[]) value;
}
return hashValueSerializer().serialize(value);