MCPcopy Index your code
hub / github.com/btraceio/btrace / Main

Class Main

integration-tests/src/test/java/resources/Main.java:31–69  ·  view source on GitHub ↗

@author Jaroslav Bachorik

Source from the content-addressed store, hash-verified

29 * @author Jaroslav Bachorik
30 */
31public class Main extends TestApp {
32 private String id = "xxx";
33 private String field;
34 private static String sField;
35
36 public static void main(String[] args) throws Exception {
37 Main i = new Main();
38 i.start();
39 }
40
41 @Override
42 protected void startWork() {
43 while (!Thread.currentThread().isInterrupted()) {
44 callA();
45 try {
46 Thread.sleep(200);
47 } catch (InterruptedException e) {
48 Thread.currentThread().interrupt();
49 }
50 }
51 }
52
53 private void callA() {
54 field = "AAA";
55 sField = "BBB";
56 print("i=" + callB(1, "Hello World"));
57 }
58
59 private int callB(int i, String s) {
60 print("[" + i + "] = " + s + ", field = " + field + ", sField = " + sField);
61 return i + 1;
62 }
63
64 @Override
65 public void print(String msg) {
66 System.out.println(msg);
67 System.out.flush();
68 }
69}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected