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 2424 */
2525@ SdkInternalApi
2626public 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}
You can’t perform that action at this time.
0 commit comments