aboutsummaryrefslogtreecommitdiffstats
path: root/config-lib
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-06-01 11:31:13 +0200
committerJon Bratseth <bratseth@oath.com>2018-06-01 11:31:13 +0200
commitcd6e2dd7ab638487c462c40293a0d8db43fdb530 (patch)
treeedf9cec58f4a0e995fd713089779ec5d0a14d134 /config-lib
parentf7d0fe5fdfad579e867f01acc1d41b2ec77bd785 (diff)
parent5c57852b26126d72b080fb6e0893dc3d633c28c1 (diff)
Merge with master
Diffstat (limited to 'config-lib')
-rwxr-xr-xconfig-lib/src/main/java/com/yahoo/config/FileReference.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/config-lib/src/main/java/com/yahoo/config/FileReference.java b/config-lib/src/main/java/com/yahoo/config/FileReference.java
index 5f0bc275bad..7d455c58b30 100755
--- a/config-lib/src/main/java/com/yahoo/config/FileReference.java
+++ b/config-lib/src/main/java/com/yahoo/config/FileReference.java
@@ -7,19 +7,20 @@ import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
+import java.util.Objects;
/**
* An immutable file reference that can only be created from classes within the same package.
* This is to prevent clients from creating arbitrary and invalid file references.
*
- * @author tonytv
+ * @author Tony Vaagenes
*/
public final class FileReference {
private final String value;
public FileReference(String value) {
- this.value = value;
+ this.value = Objects.requireNonNull(value);
}
public String value() {