mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-19 09:34:18 +01:00
Apply lint
This commit is contained in:
@@ -127,7 +127,8 @@ public final class JDBC4PreparedStatement extends JDBC4Statement implements Prep
|
|||||||
this.statement.bindNull(parameterIndex);
|
this.statement.bindNull(parameterIndex);
|
||||||
} else {
|
} else {
|
||||||
long time = x.getTime();
|
long time = x.getTime();
|
||||||
this.statement.bindBlob(parameterIndex, ByteBuffer.allocate(Long.BYTES).putLong(time).array());
|
this.statement.bindBlob(
|
||||||
|
parameterIndex, ByteBuffer.allocate(Long.BYTES).putLong(time).array());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -138,7 +139,8 @@ public final class JDBC4PreparedStatement extends JDBC4Statement implements Prep
|
|||||||
this.statement.bindNull(parameterIndex);
|
this.statement.bindNull(parameterIndex);
|
||||||
} else {
|
} else {
|
||||||
long time = x.getTime();
|
long time = x.getTime();
|
||||||
this.statement.bindBlob(parameterIndex, ByteBuffer.allocate(Long.BYTES).putLong(time).array());
|
this.statement.bindBlob(
|
||||||
|
parameterIndex, ByteBuffer.allocate(Long.BYTES).putLong(time).array());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -149,7 +151,8 @@ public final class JDBC4PreparedStatement extends JDBC4Statement implements Prep
|
|||||||
this.statement.bindNull(parameterIndex);
|
this.statement.bindNull(parameterIndex);
|
||||||
} else {
|
} else {
|
||||||
long time = x.getTime();
|
long time = x.getTime();
|
||||||
this.statement.bindBlob(parameterIndex, ByteBuffer.allocate(Long.BYTES).putLong(time).array());
|
this.statement.bindBlob(
|
||||||
|
parameterIndex, ByteBuffer.allocate(Long.BYTES).putLong(time).array());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -153,7 +153,8 @@ public final class JDBC4ResultSet implements ResultSet, ResultSetMetaData {
|
|||||||
if (result == null) {
|
if (result == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return wrapTypeConversion(() -> {
|
return wrapTypeConversion(
|
||||||
|
() -> {
|
||||||
if (result instanceof byte[]) {
|
if (result instanceof byte[]) {
|
||||||
byte[] bytes = (byte[]) result;
|
byte[] bytes = (byte[]) result;
|
||||||
if (bytes.length == Long.BYTES) {
|
if (bytes.length == Long.BYTES) {
|
||||||
@@ -172,7 +173,8 @@ public final class JDBC4ResultSet implements ResultSet, ResultSetMetaData {
|
|||||||
if (result == null) {
|
if (result == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return wrapTypeConversion(() -> {
|
return wrapTypeConversion(
|
||||||
|
() -> {
|
||||||
if (result instanceof byte[]) {
|
if (result instanceof byte[]) {
|
||||||
byte[] bytes = (byte[]) result;
|
byte[] bytes = (byte[]) result;
|
||||||
if (bytes.length == Long.BYTES) {
|
if (bytes.length == Long.BYTES) {
|
||||||
@@ -191,7 +193,8 @@ public final class JDBC4ResultSet implements ResultSet, ResultSetMetaData {
|
|||||||
if (result == null) {
|
if (result == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return wrapTypeConversion(() -> {
|
return wrapTypeConversion(
|
||||||
|
() -> {
|
||||||
if (result instanceof byte[]) {
|
if (result instanceof byte[]) {
|
||||||
byte[] bytes = (byte[]) result;
|
byte[] bytes = (byte[]) result;
|
||||||
if (bytes.length == Long.BYTES) {
|
if (bytes.length == Long.BYTES) {
|
||||||
@@ -284,7 +287,8 @@ public final class JDBC4ResultSet implements ResultSet, ResultSetMetaData {
|
|||||||
if (result == null) {
|
if (result == null) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return wrapTypeConversion(() -> {
|
return wrapTypeConversion(
|
||||||
|
() -> {
|
||||||
if (result instanceof byte[]) {
|
if (result instanceof byte[]) {
|
||||||
byte[] bytes = (byte[]) result;
|
byte[] bytes = (byte[]) result;
|
||||||
if (bytes.length == Long.BYTES) {
|
if (bytes.length == Long.BYTES) {
|
||||||
|
|||||||
Reference in New Issue
Block a user