diff options
author | Lester Solbakken <lesters@oath.com> | 2019-09-24 12:42:43 +0200 |
---|---|---|
committer | Lester Solbakken <lesters@oath.com> | 2019-09-24 12:42:43 +0200 |
commit | e44a0e7e2e662a3c82fcd6852a05523321e4ca93 (patch) | |
tree | 1b06ab29bf6f415fdcd47f8580782f98fd41ba7b /model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Const.java | |
parent | e1723e3e7c40997ecc099ab0ccfd4f6b8ba3e221 (diff) |
Don't call lazyGetType in toString - it can have side effects
Diffstat (limited to 'model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Const.java')
-rw-r--r-- | model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Const.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Const.java b/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Const.java index fc59ad35ef8..b092b292627 100644 --- a/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Const.java +++ b/model-integration/src/main/java/ai/vespa/rankingexpression/importer/operations/Const.java @@ -110,7 +110,7 @@ public class Const extends IntermediateOperation { @Override public String toFullString() { - return "\t" + lazyGetType() + ":\tConst(" + type + ")"; + return "\t" + type + ":\tConst(" + getConstantValue().get() + ")"; } } |