File tree Expand file tree Collapse file tree
src/main/java/eu/openanalytics/containerproxy/model/runtime/runtimevalues Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 */
2121package eu .openanalytics .containerproxy .model .runtime .runtimevalues ;
2222
23- import javax .ws .rs .HEAD ;
2423import java .util .Collection ;
2524import java .util .HashMap ;
2625import java .util .Map ;
3029 */
3130public class RuntimeValueKeyRegistry {
3231
33- private static final Map <String , RuntimeValueKey <?>> keys = new HashMap <>();
32+ private static final Map <String , RuntimeValueKey <?>> KEYS = new HashMap <>();
3433
3534 public static void addRuntimeValueKey (RuntimeValueKey <?> key ) {
36- if (!keys .containsKey (key .getKeyAsEnvVar ())) {
37- keys .put (key .getKeyAsEnvVar (), key );
35+ if (!KEYS .containsKey (key .getKeyAsEnvVar ())) {
36+ KEYS .put (key .getKeyAsEnvVar (), key );
3837 } else {
3938 throw new IllegalStateException ("Cannot add duplicate RuntimeValueKey with name " + key .getKeyAsEnvVar ());
4039 }
4140 }
4241
4342 public static Collection <RuntimeValueKey <?>> getRuntimeValueKeys () {
44- return keys .values ();
43+ return KEYS .values ();
4544 }
4645
4746 public static RuntimeValueKey <?> getRuntimeValue (String key ) {
48- if (!keys .containsKey (key )) {
47+ if (!KEYS .containsKey (key )) {
4948 throw new IllegalArgumentException ("Could not find RuntimeValueKey using key " + key );
5049 }
51- return keys .get (key );
50+ return KEYS .get (key );
5251 }
5352
5453 static {
You can’t perform that action at this time.
0 commit comments