blob: 8d04c0ec9295092c75eb831041ceda668241bbbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
package com.company.app;
import java.util.Arrays;
import org.aspectj.lang.SoftException;
public class Main implements Runnable {
public static void main(String[] argList) {
new Main().runMain(argList);
}
String[] input;
void spawn() {
new Thread(this, toString()).start(); // KEEP CE 15 declares-factory
}
public void runMain(String[] argList) {
this.input = argList;
run();
}
public void run() {
String[] input = this.input;
String s = ((null == input) || (0 == input.length))
? "[]"
: Arrays.asList(input).toString();
System.out.println("input: " + s);
try {
doDangerousThings(); // KEEP CW 30 declares-exceptionSpelunking
} catch (AppException e) { // KEEP CW 31 declares-exceptionSpelunking
e.printStackTrace(System.err);
}
}
private void doDangerousThings() throws AppException { // KEEP CW 38
}
}
|