Skip to content

Commit

Permalink
keep spotbugs happy
Browse files Browse the repository at this point in the history
Signed-off-by: Gireesh Sreepathi <gisripa@gmail.com>
  • Loading branch information
gisripa committed Jan 3, 2024
1 parent 68419a9 commit 6117010
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -32,6 +32,8 @@

public class RedshiftSqlGeneratorTest {

private static final Random RANDOM = new Random();

private static final RedshiftSqlGenerator redshiftSqlGenerator = new RedshiftSqlGenerator(new RedshiftSQLNameTransformer()) {

// Override only for tests to print formatted SQL. The actual implementation should use unformatted
Expand Down Expand Up @@ -113,9 +115,8 @@ public void test2000ColumnSql() {
columns.put(id2, AirbyteProtocolType.INTEGER);
columns.put(cursor, AirbyteProtocolType.TIMESTAMP_WITH_TIMEZONE);

final Random random = new Random();
for (int i = 0; i < 2000; i++) {
final String columnName = random
final String columnName = RANDOM
.ints('a', 'z' + 1)
.limit(15)
.collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append)
Expand Down

0 comments on commit 6117010

Please sign in to comment.