[Fb-contrib-commit] fb-contrib/src/com/mebigfatguy/fbcontrib/detect CyclomaticComplexity.java,1.2,1.
Brought to you by:
dbrosius
From: Dave B. <dbr...@us...> - 2005-09-16 03:20:23
|
Update of /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28126/src/com/mebigfatguy/fbcontrib/detect Modified Files: CyclomaticComplexity.java Log Message: fix CC counting with regards to Handled exceptions Index: CyclomaticComplexity.java =================================================================== RCS file: /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/CyclomaticComplexity.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- CyclomaticComplexity.java 6 Sep 2005 03:03:51 -0000 1.2 +++ CyclomaticComplexity.java 16 Sep 2005 03:20:14 -0000 1.3 @@ -81,7 +81,8 @@ if ((edgeType != EdgeTypes.FALL_THROUGH_EDGE) && (edgeType != EdgeTypes.RETURN_EDGE) && (edgeType != EdgeTypes.UNKNOWN_EDGE)) { - if (edgeType == EdgeTypes.UNHANDLED_EXCEPTION_EDGE) { + if ((edgeType == EdgeTypes.UNHANDLED_EXCEPTION_EDGE) + || (edgeType == EdgeTypes.HANDLED_EXCEPTION_EDGE)) { Integer nodeTarget = new Integer(e.getTarget().getId()); if (!exceptionNodeTargets.contains(nodeTarget)) { exceptionNodeTargets.add(nodeTarget); |