View Javadoc
1   /*
2   NPathComplexity
3   max = 20
4   
5   
6   */
7   
8   package com.puppycrawl.tools.checkstyle.checks.metrics.npathcomplexity;
9   
10  import java.util.List;
11  
12  public class InputNPathComplexityCheckBranchVisited{
13    static void checkExpiration(List<String> list) {
14      // violation above 'NPath Complexity is 37 (max allowed is 20)'
15      for (String string : list) {
16        if (string.isEmpty()) {
17          for (String string2 : list) {
18            if (string2 != null) {
19            }
20            if (string2 != null) {
21            }
22          }
23        } else {
24        }
25  
26        if (string.isEmpty()) {
27          for (String string2 : list) {
28            if (string2 != null) {
29            }
30            if (string2 != null) {
31            }
32          }
33        } else {
34        }
35      }
36    }
37  }