diff options
author | Jon Bratseth <bratseth@oath.com> | 2021-09-27 23:08:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 23:08:47 +0200 |
commit | 8f3fb1a105ded07144f6de527266a438e48a1766 (patch) | |
tree | d2923a45682e91d80e7011c60cfb301e05acead3 /config-model/src/main/java/com/yahoo/searchdefinition/DistributableResource.java | |
parent | 0a858cc0f3425fc792d978b6221ef4f3c3bc6067 (diff) | |
parent | 037f756caf4cfb99bcd988174839d7bc385267b9 (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.java | 8 |
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 + "'"; } + } |