Commits

Anonymous committed 6e3e8ec

XW-548
- Make buildConverterMapping(Class) method in XWorkConverter protected instead of private

git-svn-id: http://svn.opensymphony.com/svn/xwork/branches/xwork_1-2@1579e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (1)

src/java/com/opensymphony/xwork/util/XWorkConverter.java

 import java.io.IOException;
 import java.io.InputStream;
 import java.lang.reflect.Member;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Properties;
+import java.util.*;
 
 import ognl.DefaultTypeConverter;
 import ognl.OgnlRuntime;
     public static final String LAST_BEAN_CLASS_ACCESSED = "last.bean.accessed";
     public static final String LAST_BEAN_PROPERTY_ACCESSED = "last.property.accessed";
 
-    HashMap defaultMappings = new HashMap();
-    HashMap mappings = new HashMap();
-    HashSet noMapping = new HashSet();
-    HashSet unknownMappings = new HashSet();
-    TypeConverter defaultTypeConverter = new XWorkBasicConverter();
-    ObjectTypeDeterminer objectTypeDeterminer = ObjectTypeDeterminerFactory.getInstance();
+    protected HashMap defaultMappings = new HashMap();
+    protected HashMap mappings = new HashMap();
+    protected HashSet noMapping = new HashSet();
+    protected HashSet unknownMappings = new HashSet();
+    protected TypeConverter defaultTypeConverter = new XWorkBasicConverter();
+    protected ObjectTypeDeterminer objectTypeDeterminer = ObjectTypeDeterminerFactory.getInstance();
 
 
     protected XWorkConverter() {
      * @param mapping an existing map to add new converter mappings to
      * @param clazz   class to look for converter mappings for
      */
-    void addConverterMapping(Map mapping, Class clazz) {
+    protected void addConverterMapping(Map mapping, Class clazz) {
         try {
             InputStream is = FileManager.loadFile(buildConverterFilename(clazz), clazz);