Skip to content

Commit 6a0cbcb

Browse files
committed
Fix checkstyle
1 parent 3cf93ae commit 6a0cbcb

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

utils/src/main/java/software/amazon/awssdk/utils/ThreadStorage.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,28 @@
2424
*/
2525
@SdkInternalApi
2626
public final class ThreadStorage {
27-
private static final ThreadLocal<Map<String, String>> storage = ThreadLocal.withInitial(HashMap::new);
27+
private static final ThreadLocal<Map<String, String>> STORAGE = ThreadLocal.withInitial(HashMap::new);
2828

29-
private ThreadStorage() {}
29+
private ThreadStorage() {
30+
}
3031

3132
public static void put(String key, String value) {
32-
storage.get().put(key, value);
33+
STORAGE.get().put(key, value);
3334
}
3435

3536
public static String get(String key) {
36-
return storage.get().get(key);
37+
return STORAGE.get().get(key);
3738
}
3839

3940
public static String remove(String key) {
40-
return storage.get().remove(key);
41+
return STORAGE.get().remove(key);
4142
}
4243

4344
public static void clear() {
44-
storage.get().clear();
45+
STORAGE.get().clear();
4546
}
4647

4748
public static boolean containsKey(String key) {
48-
return storage.get().containsKey(key);
49+
return STORAGE.get().containsKey(key);
4950
}
5051
}

0 commit comments

Comments
 (0)