[Fb-contrib-commit] fb-contrib/src/com/mebigfatguy/fbcontrib/detect CyclomaticComplexity.java,1.7,1.
Brought to you by:
dbrosius
|
From: Dave B. <dbr...@us...> - 2005-12-06 05:41:05
|
Update of /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12396/src/com/mebigfatguy/fbcontrib/detect Modified Files: CyclomaticComplexity.java Log Message: javadoc Index: CyclomaticComplexity.java =================================================================== RCS file: /cvsroot/fb-contrib/fb-contrib/src/com/mebigfatguy/fbcontrib/detect/CyclomaticComplexity.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- CyclomaticComplexity.java 5 Dec 2005 05:21:15 -0000 1.7 +++ CyclomaticComplexity.java 6 Dec 2005 05:40:57 -0000 1.8 @@ -64,14 +64,27 @@ return super.clone(); } + /** + * overrides the visitor to store the class context + * + * @param context the context object for the currently parsed class + */ public void visitClassContext(final ClassContext context) { classContext = context; classContext.getJavaClass().accept(this); } + /** + * implement the detector with null implementation + */ public void report() { } + /** + * overrides the visitor to navigate the basic block list to count branches + * + * @param obj the method of the currently parsed method + */ @Override public void visitMethod(final Method obj) { try { |