Skip to content

Commit b19d81f

Browse files
author
Sylvain Lebresne
committed
Fix typo
1 parent e5c3ced commit b19d81f

File tree

1 file changed

+1
-1
lines changed
  • driver-core/src/main/java/com/datastax/driver/core/utils

1 file changed

+1
-1
lines changed

driver-core/src/main/java/com/datastax/driver/core/utils/Bytes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public static String toHexString(byte[] byteArray) {
129129
* blob string.
130130
*/
131131
public static ByteBuffer fromHexString(String str) {
132-
if (str.length() & 1 == 1)
132+
if ((str.length() & 1) == 1)
133133
throw new IllegalArgumentException("A CQL blob string must have an even length (since one byte is always 2 hexadecimal character)");
134134

135135
if (str.charAt(0) != '0' || str.charAt(1) != 'x')

0 commit comments

Comments
 (0)