From 3235f9ed3ce3faf478c7a075c413115b3faae7f1 Mon Sep 17 00:00:00 2001 From: Ashwin Tumma Date: Mon, 30 Dec 2024 20:36:36 -0800 Subject: [PATCH] Adding final to test --- .../apache/druid/common/aws/AWSCredentialsConfigTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cloud/aws-common/src/test/java/org/apache/druid/common/aws/AWSCredentialsConfigTest.java b/cloud/aws-common/src/test/java/org/apache/druid/common/aws/AWSCredentialsConfigTest.java index b894d127a963..19d19a625024 100644 --- a/cloud/aws-common/src/test/java/org/apache/druid/common/aws/AWSCredentialsConfigTest.java +++ b/cloud/aws-common/src/test/java/org/apache/druid/common/aws/AWSCredentialsConfigTest.java @@ -117,8 +117,8 @@ public void testFileSessionCredentials() String filePath = "/path/to/credentials"; properties.put(PROPERTY_PREFIX + ".fileSessionCredentials", filePath); - Injector injector = createInjector(); - AWSCredentialsConfig config = injector.getInstance(AWSCredentialsConfig.class); + final Injector injector = createInjector(); + final AWSCredentialsConfig config = injector.getInstance(AWSCredentialsConfig.class); Assert.assertEquals(filePath, config.getFileSessionCredentials()); } @@ -132,8 +132,8 @@ public void testMixedConfiguration() throws Exception properties.put(PROPERTY_PREFIX + ".secretKey", SOME_SECRET + "2"); properties.put(PROPERTY_PREFIX + ".fileSessionCredentials", "/path/to/credentials"); - Injector injector = createInjector(); - AWSCredentialsConfig config = injector.getInstance(AWSCredentialsConfig.class); + final Injector injector = createInjector(); + final AWSCredentialsConfig config = injector.getInstance(AWSCredentialsConfig.class); Assert.assertEquals(SOME_SECRET, config.getAccessKey().getPassword()); Assert.assertEquals(SOME_SECRET + "2", config.getSecretKey().getPassword());