I have this method that validates a password:
/** * Checks if the given password is valid. * * @param password The password to validate. * @return {@code tr
I think the trick is that the logical operators are counted.
Based off of your Metrics link (http://metrics.sourceforge.net/) under the McCabe Cyclomatic Complexity section:
1 Initial flow
3 decision points (if,for,if)
3 conditional logic operators (||,||,||)
total: 7