Skip to content

Commit aff9394

Browse files
committed
Fix code style of static final
1 parent cd70eeb commit aff9394

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

src/main/java/eu/openanalytics/containerproxy/model/runtime/runtimevalues/RuntimeValueKeyRegistry.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
*/
2121
package eu.openanalytics.containerproxy.model.runtime.runtimevalues;
2222

23-
import javax.ws.rs.HEAD;
2423
import java.util.Collection;
2524
import java.util.HashMap;
2625
import java.util.Map;
@@ -30,25 +29,25 @@
3029
*/
3130
public 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 {

0 commit comments

Comments
 (0)