svn commit: r682101 - /ofbiz/trunk/framework/base/src/base/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: r682101 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilProperties.java

doogie-3
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);
     }