Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions libsql-conformance/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,23 @@
</execution>
</executions>
</plugin>
<plugin>
<!-- The vendored xerial tests use deprecated JDBC API on purpose.
Suppress the deprecation detail and javac's summary note for the test compile. -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-testCompile</id>
<configuration>
<compilerArgs combine.children="append">
<arg>-Xlint:-deprecation</arg>
<arg>-XDsuppressNotes</arg>
</compilerArgs>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ public class LibsqlPreparedStatement extends LibsqlStatement implements Prepared
// Sequential list indexed by JDBC parameter position; no map or boxing overhead.
private final List<Value> parameters = new ArrayList<>();

// ParameterMetaDataView only stores this reference and calls checkClosed() after construction,
// so no subclass method can run against a half-built statement.
@SuppressWarnings("this-escape")
public LibsqlPreparedStatement(LibsqlConnection connection, String sql) {
super(connection);
this.sql = sql;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ void unsetParametersBindNullArguments() throws SQLException {
.containsExactly(Value.of(7L), Value.ofNull());
}

// The deprecated Unicode stream setter is part of the local-conversion contract.
@SuppressWarnings("deprecation")
@Test
void streamSettersBindLocalConversions() throws SQLException {
RecordingConnection connection = new RecordingConnection(NO_ROWS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ void findColumnRejectsNullLabel() {
.hasMessageContaining("null");
}

// The deprecated Unicode stream getters are part of the unsupported-method contract.
@SuppressWarnings("deprecation")
@Test
void everyUnsupportedMethodThrowsSqlFeatureNotSupportedException() throws SQLException {
LibsqlResultSet rs = resultSet(new Value.Integer(1));
Expand Down
Loading