mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-3743 - removes unnecessary second call to getProperty() and removes some unused code
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1232518 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+1
-8
@@ -88,14 +88,7 @@ public class XWorkMapPropertyAccessor extends MapPropertyAccessor {
|
||||
|
||||
String lastProperty = (String) context.get(XWorkConverter.LAST_BEAN_PROPERTY_ACCESSED);
|
||||
if (lastClass == null || lastProperty == null) {
|
||||
return super.getProperty(context, target, name);
|
||||
}
|
||||
Class keyClass = objectTypeDeterminer
|
||||
.getKeyClass(lastClass, lastProperty);
|
||||
|
||||
if (keyClass == null) {
|
||||
|
||||
keyClass = java.lang.String.class;
|
||||
return null;
|
||||
}
|
||||
Object key = getKey(context, name);
|
||||
Map map = (Map) target;
|
||||
|
||||
Reference in New Issue
Block a user