View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.coding.requirethis;
2   
3   import java.nio.file.Path;
4   import java.nio.file.Paths;
5   
6   public class InputRequireThisFor {
7       private String name;
8       int bottom;
9   
10      public void method1() {
11          for (int i = 0; i < 10; i++) {
12              int bottom = i - 4;
13              bottom = bottom > 0 ? bottom - 1 : bottom;
14          }
15      }
16  
17      public void method2() {
18          for (String name : new String[]{}) {
19          }
20  
21          Path jarfile = Paths.get(name + ".jar");
22      }
23  }