diff options
author | Harald Musum <musum@verizonmedia.com> | 2019-08-29 09:52:43 +0200 |
---|---|---|
committer | Harald Musum <musum@verizonmedia.com> | 2019-08-29 09:52:43 +0200 |
commit | 408ae127916b740cfff1620afdce0bc12ae632e9 (patch) | |
tree | 565f5dd2a9eaf995115ed66ce3a17d53c274ab18 /config | |
parent | 640f1272a1800551f10b96321c82e75c41c6e54d (diff) |
Remove use of Nullable and NotNull annotations
Different implementations and using OSGi makes it really
hard to use these annotations and the value of using them
is IMHO not very high.
Diffstat (limited to 'config')
-rwxr-xr-x | config/src/main/java/com/yahoo/vespa/config/ConfigKey.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/config/src/main/java/com/yahoo/vespa/config/ConfigKey.java b/config/src/main/java/com/yahoo/vespa/config/ConfigKey.java index a1d069da284..55cb05ec230 100755 --- a/config/src/main/java/com/yahoo/vespa/config/ConfigKey.java +++ b/config/src/main/java/com/yahoo/vespa/config/ConfigKey.java @@ -3,8 +3,6 @@ package com.yahoo.vespa.config; import com.yahoo.config.ConfigInstance; import com.yahoo.config.ConfigurationRuntimeException; -import edu.umd.cs.findbugs.annotations.NonNull; -import edu.umd.cs.findbugs.annotations.Nullable; /** * Class for holding the key when doing cache look-ups and other management of config instances. @@ -13,11 +11,8 @@ import edu.umd.cs.findbugs.annotations.Nullable; */ public class ConfigKey<CONFIGCLASS extends ConfigInstance> implements Comparable<ConfigKey<?>> { - @NonNull private final String name; - @NonNull private final String configId; - @NonNull private final String namespace; // The two fields below are only set when ConfigKey is constructed from a config class. Can be null @@ -97,27 +92,22 @@ public class ConfigKey<CONFIGCLASS extends ConfigInstance> implements Comparable return hash; } - @NonNull public String getName() { return name; } - @NonNull public String getConfigId() { return configId; } - @NonNull public String getNamespace() { return namespace; } - @Nullable public Class<CONFIGCLASS> getConfigClass() { return configClass; } - @Nullable public String getMd5() { return md5; } |