[seam-commits] Seam SVN: r9920 - trunk/src/remoting/org/jboss/seam/remoting.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Jan 12 13:50:23 EST 2009
Author: norman.richards at jboss.com
Date: 2009-01-12 13:50:23 -0500 (Mon, 12 Jan 2009)
New Revision: 9920
Modified:
trunk/src/remoting/org/jboss/seam/remoting/Call.java
Log:
JBSEAM-3794
Modified: trunk/src/remoting/org/jboss/seam/remoting/Call.java
===================================================================
--- trunk/src/remoting/org/jboss/seam/remoting/Call.java 2009-01-12 18:40:23 UTC (rev 9919)
+++ trunk/src/remoting/org/jboss/seam/remoting/Call.java 2009-01-12 18:50:23 UTC (rev 9920)
@@ -8,6 +8,7 @@
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import java.util.Map.Entry;
import org.jboss.seam.Component;
import org.jboss.seam.annotations.remoting.WebRemote;
@@ -271,12 +272,11 @@
Method bestMethod = null;
int bestScore = 0;
- for (Method m : candidates.keySet())
+ for (Entry<Method,Integer> entry : candidates.entrySet())
{
- int thisScore = candidates.get(m).intValue();
- if (bestMethod == null || thisScore > bestScore)
- {
- bestMethod = m;
+ int thisScore = entry.getValue();
+ if (bestMethod == null || thisScore > bestScore) {
+ bestMethod = entry.getKey();
bestScore = thisScore;
}
}
More information about the seam-commits
mailing list