[Fb-contrib-commit] SF.net SVN: fb-contrib: [707] trunk/fb-contrib/src/com/mebigfatguy/ fbcontrib/
Brought to you by:
dbrosius
From: <dbr...@us...> - 2006-12-04 02:30:27
|
Revision: 707 http://svn.sourceforge.net/fb-contrib/?rev=707&view=rev Author: dbrosius Date: 2006-12-03 18:30:27 -0800 (Sun, 03 Dec 2006) Log Message: ----------- fix findScopeBlock Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java 2006-12-04 00:45:50 UTC (rev 706) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/BloatedAssignmentScope.java 2006-12-04 02:30:27 UTC (rev 707) @@ -168,9 +168,9 @@ if ((pc > sb.getStart()) && (pc < sb.getFinish())) { if (sb.children != null) { for (ScopeBlock child : sb.children) { - sb = findScopeBlock(child, pc); - if (sb != null) - return sb; + ScopeBlock foundSb = findScopeBlock(child, pc); + if (foundSb != null) + return foundSb; } } return sb; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |