File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
utils/src/main/java/software/amazon/awssdk/utils Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 24
24
*/
25
25
@ SdkInternalApi
26
26
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 );
28
28
29
- private ThreadStorage () {}
29
+ private ThreadStorage () {
30
+ }
30
31
31
32
public static void put (String key , String value ) {
32
- storage .get ().put (key , value );
33
+ STORAGE .get ().put (key , value );
33
34
}
34
35
35
36
public static String get (String key ) {
36
- return storage .get ().get (key );
37
+ return STORAGE .get ().get (key );
37
38
}
38
39
39
40
public static String remove (String key ) {
40
- return storage .get ().remove (key );
41
+ return STORAGE .get ().remove (key );
41
42
}
42
43
43
44
public static void clear () {
44
- storage .get ().clear ();
45
+ STORAGE .get ().clear ();
45
46
}
46
47
47
48
public static boolean containsKey (String key ) {
48
- return storage .get ().containsKey (key );
49
+ return STORAGE .get ().containsKey (key );
49
50
}
50
51
}
You can’t perform that action at this time.
0 commit comments