From 4af8b2491dc90417cd3920fe2d64d6ec3be0665a Mon Sep 17 00:00:00 2001 From: Michael Brohl Date: Fri, 8 Dec 2017 20:48:14 +0000 Subject: [PATCH] Improved: removed unnecessary condition check. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817561 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/ofbiz/entity/model/ModelUtil.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelUtil.java b/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelUtil.java index 8453366314..b49b5ccc09 100644 --- a/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelUtil.java +++ b/framework/entity/src/main/java/org/apache/ofbiz/entity/model/ModelUtil.java @@ -284,8 +284,7 @@ public final class ModelUtil { if (length > 18 || precision > 6) return "invalid-" + sqlTypeName + ":" + length + ":" + precision; if (precision == 0) return "numeric"; if (precision == 2) return "currency-amount"; - if (precision <= 6) return "floating-point"; - return "invalid-" + sqlTypeName + ":" + length + ":" + precision; + return "floating-point"; } else if ("BLOB".equalsIgnoreCase(sqlTypeName) || "OID".equalsIgnoreCase(sqlTypeName)) { return "blob"; } else if ("DATETIME".equalsIgnoreCase(sqlTypeName) || "TIMESTAMP".equalsIgnoreCase(sqlTypeName)) {