Skip to content

Commit

Permalink
reduced access modifiers of some FireboltResultSet constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexradzin committed Apr 17, 2024
1 parent 7eb2186 commit f7fc5e1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ public FireboltResultSet(InputStream is) throws SQLException {
this(is, null, null, null, false, null, false);
}

public FireboltResultSet(InputStream is, String tableName, String dbName, Integer bufferSize) throws SQLException {
FireboltResultSet(InputStream is, String tableName, String dbName, Integer bufferSize) throws SQLException {
this(is, tableName, dbName, bufferSize, false, null, false);
}

public FireboltResultSet(InputStream is, String tableName, String dbName, Integer bufferSize,
FireboltResultSet(InputStream is, String tableName, String dbName, Integer bufferSize,
FireboltStatement fireboltStatement) throws SQLException {
this(is, tableName, dbName, bufferSize, false, fireboltStatement, false);
}
Expand All @@ -112,7 +112,7 @@ private FireboltResultSet() {
maxFieldSize = 0; // 0 value means unlimited
}

public FireboltResultSet(InputStream is, String tableName, String dbName, Integer bufferSize, boolean isCompressed,
FireboltResultSet(InputStream is, String tableName, String dbName, Integer bufferSize, boolean isCompressed,
FireboltStatement statement, boolean logResultSet) throws SQLException {
this(is, tableName, dbName, bufferSize, statement == null ? 0 : statement.getMaxRows(), statement == null ? 0 : statement.getMaxFieldSize(), isCompressed, statement, logResultSet);
}
Expand All @@ -122,7 +122,7 @@ public FireboltResultSet(InputStream is, String tableName, String dbName, Firebo
}

@SuppressWarnings("java:S107") //Number of parameters (8) > max (7). This is the price of the immutability
public FireboltResultSet(InputStream is, String tableName, String dbName, Integer bufferSize, int maxRows, int maxFieldSize, boolean isCompressed,
private FireboltResultSet(InputStream is, String tableName, String dbName, Integer bufferSize, int maxRows, int maxFieldSize, boolean isCompressed,
FireboltStatement statement, boolean logResultSet) throws SQLException {
log.debug("Creating resultSet...");
this.statement = statement;
Expand Down

0 comments on commit f7fc5e1

Please sign in to comment.