[Fb-contrib-commit] SF.net SVN: fb-contrib: [889] trunk/fb-contrib/src/com/mebigfatguy/ fbcontrib/d
Brought to you by:
dbrosius
From: <dbr...@us...> - 2007-06-25 22:17:40
|
Revision: 889 http://svn.sourceforge.net/fb-contrib/?rev=889&view=rev Author: dbrosius Date: 2007-06-25 15:17:43 -0700 (Mon, 25 Jun 2007) Log Message: ----------- Fix keyset, values, iterator processing Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseToArray.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseToArray.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseToArray.java 2007-06-25 22:14:58 UTC (rev 888) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/UseToArray.java 2007-06-25 22:17:43 UTC (rev 889) @@ -132,8 +132,8 @@ } } } else if ("keySet".equals(methodName) || "values".equals(methodName) || "iterator".equals(methodName) || "next".equals(methodName)) { - if (stack.getStackDepth() > 1) { - OpcodeStack.Item itm = stack.getStackItem(1); + if (stack.getStackDepth() > 0) { + OpcodeStack.Item itm = stack.getStackItem(0); reg = isLocalCollection(itm); if (reg >= 0) { sawAlias = true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |