diff options
author | Jon Bratseth <bratseth@verizonmedia.com> | 2019-06-06 14:48:59 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@verizonmedia.com> | 2019-06-06 14:48:59 +0200 |
commit | d8f7b173ee8e2404f0138a753023c7d4df63bdb9 (patch) | |
tree | 3b137aa7f94ac3764cd06ae4a5495298429a3b42 /model-integration | |
parent | 798842b3766fd51323c43182573f13487e51eb43 (diff) |
Rewrite large constant references from foo to constant(foo)
Diffstat (limited to 'model-integration')
-rw-r--r-- | model-integration/src/main/java/ai/vespa/rankingexpression/importer/ImportedModel.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/model-integration/src/main/java/ai/vespa/rankingexpression/importer/ImportedModel.java b/model-integration/src/main/java/ai/vespa/rankingexpression/importer/ImportedModel.java index 58962d1a5ff..0c570261ae7 100644 --- a/model-integration/src/main/java/ai/vespa/rankingexpression/importer/ImportedModel.java +++ b/model-integration/src/main/java/ai/vespa/rankingexpression/importer/ImportedModel.java @@ -147,9 +147,6 @@ public class ImportedModel implements ImportedMlModel { */ public File relativeFile(String relativePath, String descriptionOfPath) { File file = new File(new File(source()).getParent(), relativePath); - if (file.isAbsolute()) - throw new IllegalArgumentException(descriptionOfPath + " uses the absolute file path '" + relativePath + - "'. File paths must be relative to the directory referencing them"); if ( ! file.exists()) throw new IllegalArgumentException(descriptionOfPath + " references '" + relativePath + "', but this file does not exist"); |