From 3bbe4cec45fa264950ebd29070602aacaf20f195 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 2 Oct 2012 23:17:29 -0500 Subject: [PATCH] IDEMPIERE-308 Performance: Replace with StringBuilder / fix problem found with lookups --- org.adempiere.base/src/org/compiere/model/MLookup.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MLookup.java b/org.adempiere.base/src/org/compiere/model/MLookup.java index 420002054f..39f0e82fdc 100644 --- a/org.adempiere.base/src/org/compiere/model/MLookup.java +++ b/org.adempiere.base/src/org/compiere/model/MLookup.java @@ -758,7 +758,7 @@ public final class MLookup extends Lookup implements Serializable boolean isActive = rs.getString(4).equals("Y"); if (!isActive) { - name.append(INACTIVE_S).append(INACTIVE_E); + name = new StringBuilder(INACTIVE_S).append(INACTIVE_E); m_hasInactive = true; } if (isNumber)