Commits

Anonymous committed c834eab

no need to keep a list of mappings, the last one is all we need

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@410e221344d-f017-0410-9bd5-d282ab1896d7

Comments (0)

Files changed (2)

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

     }
 
     public static void link(Map context, Class clazz, String name) {
-        List link = (List) context.get("__link");
-        if (link == null) {
-            link = new ArrayList(3);
-            context.put("__link", link);
-        }
-
-        link.add(new Object[] { clazz, name });
+        context.put("__link", new Object[] { clazz, name });
     }
 
     //~ Instance fields ////////////////////////////////////////////////////////

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

     }
 
     private Object[] getClassProperty(Map context) {
-        List link = (List) context.get("__link");
-        if (link == null || link.isEmpty()) {
-            return null;
-        }
-
-        return (Object[]) link.get(link.size() - 1);
+        return (Object[]) context.get("__link");
     }
 
     private Object acceptableErrorValue(Class toClass) {