View Javadoc
1   package org.checkstyle.suppressionxpathfilter.npathcomplexity;
2   
3   public class InputXpathNPathComplexityStaticBlock {
4       static { //warn
5           int i = 1;
6           // NP = (if-range=1) + (else-range=2) + 0 = 3
7           if (System.currentTimeMillis() == 0) {
8               // NP(else-range) = (if-range=1) + (else-range=1) + (expr=0) = 2
9           } else if (System.currentTimeMillis() == 0) {
10          } else {
11          }
12      }
13  }