You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2014/01/02 09:17:23 UTC

svn commit: r1554764 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java

Author: jleroux
Date: Thu Jan  2 08:17:23 2014
New Revision: 1554764

URL: http://svn.apache.org/r1554764
Log:
Keeps the hack clean, sync is not needed here

Modified:
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java?rev=1554764&r1=1554763&r2=1554764&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/SetOperation.java Thu Jan  2 08:17:23 2014
@@ -147,11 +147,9 @@ public final class SetOperation extends 
             Locale localeTemp = null; // FIXME this is a temporary hack waiting for a better geolocation data model, related with OFBIZ-5453
             if (!this.localeFse.isEmpty() && this.type.length() > 0) {
                 localeTemp = methodContext.getLocale();
-                synchronized (this) {
-                    methodContext.setLocale(new Locale(this.localeFse.expandString(methodContext.getEnvMap())));
-                    newValue = this.fromFma.get(methodContext.getEnvMap());
-                    methodContext.setLocale(localeTemp);
-                }
+                methodContext.setLocale(new Locale(this.localeFse.expandString(methodContext.getEnvMap())));
+                newValue = this.fromFma.get(methodContext.getEnvMap());
+                methodContext.setLocale(localeTemp);
             } else {
                 newValue = this.fromFma.get(methodContext.getEnvMap());
             }