svn commit: r956472 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r956472 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java

doogie-3
Author: doogie
Date: Mon Jun 21 07:09:13 2010
New Revision: 956472

URL: http://svn.apache.org/viewvc?rev=956472&view=rev
Log:
Remove useless check for non-null bundle, immediately after a null
check, in UtilResourceBundle.getBundle().

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java?rev=956472&r1=956471&r2=956472&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/UtilProperties.java Mon Jun 21 07:09:13 2010
@@ -896,9 +896,6 @@ public class UtilProperties implements S
             UtilResourceBundle bundle = bundleCache.get(resourceName);
             if (bundle == null) {
                 synchronized (bundleCache) {
-                    if (bundle != null) {
-                        return bundle;
-                    }
                     double startTime = System.currentTimeMillis();
                     FastList<Locale> candidateLocales = (FastList<Locale>) getCandidateLocales(locale);
                     UtilResourceBundle parentBundle = null;