aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/searchdefinition/DistributableResource.java
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2021-09-27 23:08:47 +0200
committerGitHub <noreply@github.com>2021-09-27 23:08:47 +0200
commit8f3fb1a105ded07144f6de527266a438e48a1766 (patch)
treed2923a45682e91d80e7011c60cfb301e05acead3 /config-model/src/main/java/com/yahoo/searchdefinition/DistributableResource.java
parent0a858cc0f3425fc792d978b6221ef4f3c3bc6067 (diff)
parent037f756caf4cfb99bcd988174839d7bc385267b9 (diff)
Merge branch 'master' into bratseth/linguistics-components
Diffstat (limited to 'config-model/src/main/java/com/yahoo/searchdefinition/DistributableResource.java')
-rw-r--r--config-model/src/main/java/com/yahoo/searchdefinition/DistributableResource.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/config-model/src/main/java/com/yahoo/searchdefinition/DistributableResource.java b/config-model/src/main/java/com/yahoo/searchdefinition/DistributableResource.java
index 1719ea72cb0..472bc9d5413 100644
--- a/config-model/src/main/java/com/yahoo/searchdefinition/DistributableResource.java
+++ b/config-model/src/main/java/com/yahoo/searchdefinition/DistributableResource.java
@@ -11,6 +11,7 @@ import java.util.Collection;
import java.util.Objects;
public class DistributableResource {
+
public enum PathType { FILE, URI, BLOB };
/** The search definition-unique name of this constant */
@@ -95,10 +96,9 @@ public class DistributableResource {
}
}
+ @Override
public String toString() {
- StringBuilder b = new StringBuilder();
- b.append("resource '").append(name).append(" of type '").append(pathType)
- .append("' with ref '").append(fileReference).append("'");
- return b.toString();
+ return "resource '" + name + " of type '" + pathType + "' with ref '" + fileReference + "'";
}
+
}