Skip to content
Permalink
Browse files
Uses more efficient entrySet() instead of keySet()
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/ognl/trunk@1430157 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
lukaszlenart committed Jan 8, 2013
1 parent b2a853e commit ac7201b653c5cd24f11d4672a27367cdc9b88d3b
Showing 1 changed file with 3 additions and 2 deletions.
@@ -152,9 +152,10 @@ private static void findObjectIndexedPropertyDescriptors( Class<?> targetClass,
}
}

for ( String propertyName : pairs.keySet() )
for ( Map.Entry<String, List<Method>> entry : pairs.entrySet() )
{
List<Method> methods = pairs.get( propertyName );
String propertyName = entry.getKey();
List<Method> methods = entry.getValue();

if ( methods.size() == 2 )
{

0 comments on commit ac7201b

Please sign in to comment.