From 126b86b2e5592a5caa80e417aa24024a2f51a681 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Tue, 10 Feb 2015 16:51:28 +0000 Subject: [PATCH] Updated Numeric to Double git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-expression-widget@111864 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../user/td/expressionwidget/server/C_ExpressionParser.java | 6 +++--- .../expressionwidget/shared/condition/ConditionTypeMap.java | 2 +- .../td/expressionwidget/shared/replace/ReplaceTypeMap.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/td/expressionwidget/server/C_ExpressionParser.java b/src/main/java/org/gcube/portlets/user/td/expressionwidget/server/C_ExpressionParser.java index 9bca699..03756b8 100644 --- a/src/main/java/org/gcube/portlets/user/td/expressionwidget/server/C_ExpressionParser.java +++ b/src/main/java/org/gcube/portlets/user/td/expressionwidget/server/C_ExpressionParser.java @@ -476,12 +476,12 @@ public class C_ExpressionParser { ex = new TDInteger(vInteger); break; case Numeric: - Float vNumeric; + Double vNumeric; try { - vNumeric = Float.valueOf(value.getValue()); + vNumeric = Double.valueOf(value.getValue()); } catch (NumberFormatException e) { throw new ExpressionParserException(value.getValue() - + " is not valid Float type"); + + " is not valid Double type"); } ex = new TDNumeric(vNumeric); break; diff --git a/src/main/java/org/gcube/portlets/user/td/expressionwidget/shared/condition/ConditionTypeMap.java b/src/main/java/org/gcube/portlets/user/td/expressionwidget/shared/condition/ConditionTypeMap.java index 9c8863a..18f7180 100644 --- a/src/main/java/org/gcube/portlets/user/td/expressionwidget/shared/condition/ConditionTypeMap.java +++ b/src/main/java/org/gcube/portlets/user/td/expressionwidget/shared/condition/ConditionTypeMap.java @@ -670,7 +670,7 @@ public class ConditionTypeMap { "Insert a valid Numeric(ex: -1.2, 0, 1, 2.4)!"); } try { - Float.parseFloat(arg); + Double.parseDouble(arg); } catch (NumberFormatException e) { throw new ConditionTypeMapException(arg + " is not valid Numeric(ex: -1.2, 0, 1, 2.4)!"); diff --git a/src/main/java/org/gcube/portlets/user/td/expressionwidget/shared/replace/ReplaceTypeMap.java b/src/main/java/org/gcube/portlets/user/td/expressionwidget/shared/replace/ReplaceTypeMap.java index f406246..c9ed2a5 100644 --- a/src/main/java/org/gcube/portlets/user/td/expressionwidget/shared/replace/ReplaceTypeMap.java +++ b/src/main/java/org/gcube/portlets/user/td/expressionwidget/shared/replace/ReplaceTypeMap.java @@ -702,7 +702,7 @@ public class ReplaceTypeMap { "Insert a valid Numeric(ex: -1.2, 0, 1, 2.4)!"); } try { - Float.parseFloat(arg); + Double.parseDouble(arg); } catch (NumberFormatException e) { throw new ReplaceTypeMapException(arg + " is not valid Numeric(ex: -1.2, 0, 1, 2.4)!");