code to calc java cyclomatic complexity