From 280a4e9b8719b587751bc9449d034ef4b49948a8 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 27 Dec 2006 16:00:13 +0000 Subject: [PATCH] Integrate hint from Teo Sarca -> BigDecimal for accesslevel BUG ID 1617928 - Inefficient use of Boolean ctor for gen. model Pending generation of the whole model for next version --- dbPort/src/org/compiere/util/GenerateModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbPort/src/org/compiere/util/GenerateModel.java b/dbPort/src/org/compiere/util/GenerateModel.java index 80472ca800..b69f4f2123 100644 --- a/dbPort/src/org/compiere/util/GenerateModel.java +++ b/dbPort/src/org/compiere/util/GenerateModel.java @@ -190,7 +190,7 @@ public class GenerateModel // + "protected static KeyNamePair Model = new KeyNamePair(").append(AD_Table_ID).append(",\"").append(tableName).append("\");\n" + "protected static KeyNamePair Model = new KeyNamePair(Table_ID,\"").append(tableName).append("\");\n" // - + "protected BigDecimal accessLevel = new BigDecimal(").append(accessLevel).append(");" + + "protected BigDecimal accessLevel = BigDecimal.valueOf(").append(accessLevel).append(");" + "/** AccessLevel\n@return ").append(accessLevelInfo).append("\n*/\n" + "protected int get_AccessLevel()" + "{"