Skip to content

Commit

Permalink
Mark final fields as such (#159)
Browse files Browse the repository at this point in the history
This also makes some LOGGER declarations static.
  • Loading branch information
findepi committed Aug 23, 2024
1 parent 3c99199 commit 5e6a799
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public class PolarisApplicationIntegrationTest {
LoggerFactory.getLogger(PolarisApplicationIntegrationTest.class);

public static final String PRINCIPAL_ROLE_NAME = "admin";
private static DropwizardAppExtension<PolarisApplicationConfig> EXT =
private static final DropwizardAppExtension<PolarisApplicationConfig> EXT =
new DropwizardAppExtension<>(
PolarisApplication.class,
ResourceHelpers.resourceFilePath("polaris-server-integrationtest.yml"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public class PolarisRestCatalogIntegrationTest extends CatalogTests<RESTCatalog>
private static final String S3_BUCKET_BASE =
Optional.ofNullable(System.getenv("INTEGRATION_TEST_S3_PATH"))
.orElse("file:///tmp/buckets/my-bucket");
private static DropwizardAppExtension<PolarisApplicationConfig> EXT =
private static final DropwizardAppExtension<PolarisApplicationConfig> EXT =
new DropwizardAppExtension<>(
PolarisApplication.class,
ResourceHelpers.resourceFilePath("polaris-server-integrationtest.yml"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class PolarisRestCatalogViewIntegrationTest extends ViewCatalogTests<REST
public static final String S3_BUCKET_BASE =
Optional.ofNullable(System.getenv("INTEGRATION_TEST_S3_PATH"))
.orElse("file:///tmp/buckets/my-bucket");
private static DropwizardAppExtension<PolarisApplicationConfig> EXT =
private static final DropwizardAppExtension<PolarisApplicationConfig> EXT =
new DropwizardAppExtension<>(
PolarisApplication.class,
ResourceHelpers.resourceFilePath("polaris-server-integrationtest.yml"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class PolarisSparkIntegrationTest {

public static final String CATALOG_NAME = "mycatalog";
public static final String EXTERNAL_CATALOG_NAME = "external_catalog";
private static S3MockContainer s3Container =
private static final S3MockContainer s3Container =
new S3MockContainer("3.9.1").withInitialBuckets("my-bucket,my-old-bucket");
private static PolarisConnectionExtension.PolarisToken polarisToken;
private static SparkSession spark;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
import org.apache.iceberg.io.FileIO;

final class TestSnapshot implements Snapshot {
private long sequenceNumber;
private long snapshotId;
private long parentSnapshot;
private long timestampMillis;
private String manifestListLocation;
private final long sequenceNumber;
private final long snapshotId;
private final long parentSnapshot;
private final long timestampMillis;
private final String manifestListLocation;

public TestSnapshot(
long sequenceNumber,
Expand Down

0 comments on commit 5e6a799

Please sign in to comment.