You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2008/08/03 06:28:18 UTC

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

Author: doogie
Date: Sat Aug  2 21:28:17 2008
New Revision: 682101

URL: http://svn.apache.org/viewvc?rev=682101&view=rev
Log:
getResourceBundleMap returns ResourceBundleMapWrapper instead of
Map<String, Object>; this way, callers don't have to explicitly
cast to the former when they need to.

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

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java?rev=682101&r1=682100&r2=682101&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java Sat Aug  2 21:28:17 2008
@@ -499,7 +499,7 @@
      * @param locale The locale that the given resource will correspond to
      * @return Map containing all entries in The ResourceBundle
      */
-    public static Map<String, Object> getResourceBundleMap(String resource, Locale locale) {
+    public static ResourceBundleMapWrapper getResourceBundleMap(String resource, Locale locale) {
         return new ResourceBundleMapWrapper(getResourceBundle(resource, locale));
     }
 
@@ -510,7 +510,7 @@
      * @param context The screen rendering context
      * @return Map containing all entries in The ResourceBundle
      */
-    public static Map<String, Object> getResourceBundleMap(String resource, Locale locale, Map<String, Object> context) {
+    public static ResourceBundleMapWrapper getResourceBundleMap(String resource, Locale locale, Map<String, Object> context) {
         return new ResourceBundleMapWrapper(getResourceBundle(resource, locale), context);
     }