Author: adrianc
Date: Mon Nov 7 11:05:13 2011
New Revision: 1198702
URL:
http://svn.apache.org/viewvc?rev=1198702&view=revLog:
Added a FIXME comment to some non-thread-safe code in UtilFormatOut.java. No time to fix it right now.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilFormatOut.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilFormatOut.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilFormatOut.java?rev=1198702&r1=1198701&r2=1198702&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilFormatOut.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilFormatOut.java Mon Nov 7 11:05:13 2011
@@ -40,6 +40,7 @@ public class UtilFormatOut {
}
// ------------------- price format handlers -------------------
+ // FIXME: This is not thread-safe! DecimalFormat is not synchronized.
static DecimalFormat priceDecimalFormat = new DecimalFormat(UtilProperties.getPropertyValue("general.properties", "currency.decimal.format", "#,##0.00"));
/** Formats a Double representing a price into a string