Skip to content

Commit

Permalink
Fix a few easy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gartens committed Sep 28, 2023
1 parent ef4c0b9 commit 2dc80ee
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class PolyphenyParameterMeta {
/* As all values are unsigned in polypheny we hardcoded this. */
private static final boolean SIGNEDNESS = false;
private static final int PARAMETER_MODE = ParameterMetaData.parameterModeIn;
private static final int NULLABLITY = ParameterMetaData.parameterNullableUnknown;
private static final int NULLABILITY = ParameterMetaData.parameterNullableUnknown;

@Getter
private String parameterClassName;
Expand All @@ -36,7 +36,7 @@ public PolyphenyParameterMeta( ParameterMeta parameterMeta ) {
this.parameterTypeName = parameterMeta.getTypeName();
this.precision = parameterMeta.getPrecision();
this.scale = parameterMeta.getScale();
this.isNullable = NULLABLITY;
this.isNullable = NULLABILITY;
this.isSigned = SIGNEDNESS;

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import org.polypheny.jdbc.ProtoInterfaceClient;
import org.polypheny.jdbc.ProtoInterfaceErrors;
import org.polypheny.jdbc.ProtoInterfaceServiceException;
import org.polypheny.jdbc.nativetypes.document.PolyDocument;
import org.polypheny.jdbc.properties.PropertyUtils;
import org.polypheny.db.protointerface.proto.Frame;
import org.polypheny.db.protointerface.proto.Frame.ResultCase;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/org/polypheny/jdbc/nativetypes/PolyList.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.util.Collection;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Value;
import lombok.experimental.Delegate;
import org.jetbrains.annotations.NotNull;
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/polypheny/jdbc/nativetypes/PolyString.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.polypheny.jdbc.ProtoInterfaceServiceException;
import org.polypheny.db.protointerface.proto.ProtoString;
import org.polypheny.db.protointerface.proto.ProtoValue;
import org.polypheny.db.protointerface.proto.ProtoValue.ProtoValueType;

public class PolyString extends PolyValue{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public int compareTo( @NotNull PolyValue o ) {
if ( !isSameType( o ) ) {
return -1;
}
Map<PolyValue, PolyValue> other = null;
Map<PolyValue, PolyValue> other;
try {
other = o.asMap();
} catch ( ProtoInterfaceServiceException e ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import lombok.Getter;
import org.polypheny.jdbc.ProtoInterfaceServiceException;
import org.polypheny.jdbc.ProtoInterfaceErrors;
import org.polypheny.db.protointerface.proto.ConnectionProperties;

public class PropertyUtils {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.apache.commons.lang3.NotImplementedException;
import org.polypheny.jdbc.ProtoInterfaceServiceException;
import org.polypheny.jdbc.ProtoInterfaceErrors;
import org.polypheny.db.protointerface.proto.ProtoBigDecimal;
Expand Down
5 changes: 1 addition & 4 deletions src/test/java/org/polypheny/jdbc/QueryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
Expand All @@ -15,9 +14,7 @@
import org.polypheny.jdbc.multimodel.PolyStatement;
import org.polypheny.jdbc.multimodel.Result;
import org.polypheny.jdbc.multimodel.Result.ResultType;
import org.polypheny.jdbc.multimodel.ScalarResult;
import org.polypheny.jdbc.nativetypes.document.PolyDocument;
import org.polypheny.db.protointerface.proto.Document;

public class QueryTest {

Expand All @@ -37,7 +34,7 @@ public void thisOneWorks() throws ClassNotFoundException {
try (
Connection connection = DriverManager.getConnection( "jdbc:polypheny://localhost:20590" );
Statement statement = connection.createStatement();
ResultSet resultSet = statement.executeQuery( "SELECT * FROM emps" );
ResultSet resultSet = statement.executeQuery( "SELECT * FROM emps" )
) {
while ( resultSet.next() ) {
// Process the result set...
Expand Down

0 comments on commit 2dc80ee

Please sign in to comment.