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