From 0e7872abef497fd0d6ab375caa50d56a5d38d088 Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Tue, 22 Dec 2009 06:10:33 +0000 Subject: [PATCH] It turns out that all current uses of this are actually with StaticValues. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893079 13f79535-47bb-0310-9956-ffa450edef68 --- framework/sql/src/org/ofbiz/sql/FieldDefValue.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/sql/src/org/ofbiz/sql/FieldDefValue.java b/framework/sql/src/org/ofbiz/sql/FieldDefValue.java index 13ac68523c..5a83bbc5e6 100644 --- a/framework/sql/src/org/ofbiz/sql/FieldDefValue.java +++ b/framework/sql/src/org/ofbiz/sql/FieldDefValue.java @@ -19,14 +19,14 @@ package org.ofbiz.sql; public final class FieldDefValue extends FieldDef { - private final ConstantValue value; + private final StaticValue value; - public FieldDefValue(ConstantValue value, String alias) { - super(alias == null && value instanceof StaticValue ? ((StaticValue) value).getDefaultName() : alias); + public FieldDefValue(StaticValue value, String alias) { + super(alias == null ? value.getDefaultName() : alias); this.value = value; } - public ConstantValue getValue() { + public StaticValue getValue() { return value; }