Improved: removed unnecessary condition check.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1817561 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Brohl
2017-12-08 20:48:14 +00:00
parent a72f027892
commit 4af8b2491d
@@ -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)) {