[Fb-contrib-commit] SF.net SVN: fb-contrib: [418] trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/det
Brought to you by:
dbrosius
|
From: <dbr...@us...> - 2006-04-08 22:59:09
|
Revision: 418 Author: dbrosius Date: 2006-04-08 15:59:04 -0700 (Sat, 08 Apr 2006) ViewCVS: http://svn.sourceforge.net/fb-contrib/?rev=418&view=rev Log Message: ----------- the method length needs to twice the reportSize to even check it. Modified Paths: -------------- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/CyclomaticComplexity.java Modified: trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/CyclomaticComplexity.java =================================================================== --- trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/CyclomaticComplexity.java 2006-04-08 22:37:22 UTC (rev 417) +++ trunk/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/CyclomaticComplexity.java 2006-04-08 22:59:04 UTC (rev 418) @@ -99,7 +99,7 @@ //There really is no valid relationship between reportLimit and code //length, but it is good enough. If the method is small, don't bother - if (code.getCode().length < reportLimit) + if (code.getCode().length < (2*reportLimit)) return; Set<Integer> exceptionNodeTargets = new HashSet<Integer>(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |