Skip to content

Commit 3c4b863

Browse files
committed
Fix compile error on JDK 8
1 parent 4baa9c9 commit 3c4b863

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseTransaction.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public static XID of(List<?> list) {
3939
throw new IllegalArgumentException(
4040
"Non-null tuple with 3 elements(long, long, String) is required");
4141
}
42-
long snapshotVersion = (long) list.get(0);
43-
long localTxCounter = (long) list.get(1);
42+
long snapshotVersion = (Long) list.get(0);
43+
long localTxCounter = (Long) list.get(1);
4444
String hostId = String.valueOf(list.get(2));
4545
if (EMPTY.snapshotVersion == snapshotVersion && EMPTY.localTxCounter == localTxCounter
4646
&& EMPTY.hostId.equals(hostId)) {

0 commit comments

Comments
 (0)