Skip to content

Commit e574e21

Browse files
1311: use of Collections.singleton
1 parent 252602f commit e574e21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fluss-filesystems/fluss-fs-abfs/src/main/java/org/apache/fluss/fs/abfs/token/AzureDelegationTokenProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import org.slf4j.LoggerFactory;
2828

2929
import java.io.IOException;
30-
import java.util.Arrays;
30+
import java.util.Collections;
3131
import java.util.HashMap;
3232
import java.util.Map;
3333

@@ -56,7 +56,7 @@ public AzureDelegationTokenProvider(String scheme, Configuration conf) {
5656
this.authEndpoint = conf.get(ENDPOINT_KEY);
5757
this.additionInfos = new HashMap<>();
5858

59-
for (String key : Arrays.asList(ENDPOINT_KEY)) {
59+
for (String key : Collections.singleton(ENDPOINT_KEY)) {
6060
if (conf.get(key) != null) {
6161
additionInfos.put(key, conf.get(key));
6262
}

0 commit comments

Comments
 (0)