From 486e0fb846ff69a99fef1ca30e13e05772f7ea00 Mon Sep 17 00:00:00 2001 From: Gireesh Sreepathi Date: Wed, 3 Jan 2024 11:06:22 -0800 Subject: [PATCH] keep spotbugs happy Signed-off-by: Gireesh Sreepathi --- .../redshift/typing_deduping/RedshiftSqlGeneratorTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/airbyte-integrations/connectors/destination-redshift/src/test/java/io/airbyte/integrations/destination/redshift/typing_deduping/RedshiftSqlGeneratorTest.java b/airbyte-integrations/connectors/destination-redshift/src/test/java/io/airbyte/integrations/destination/redshift/typing_deduping/RedshiftSqlGeneratorTest.java index fa6a91b9a408..732e23d20fd5 100644 --- a/airbyte-integrations/connectors/destination-redshift/src/test/java/io/airbyte/integrations/destination/redshift/typing_deduping/RedshiftSqlGeneratorTest.java +++ b/airbyte-integrations/connectors/destination-redshift/src/test/java/io/airbyte/integrations/destination/redshift/typing_deduping/RedshiftSqlGeneratorTest.java @@ -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 @@ -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)