MCPcopy Create free account
hub / github.com/Y4tacker/JavaSec / Test

Class Test

6.JavaAgent/AgentMain/code/AgentMainTest/src/main/java/Test.java:2–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// 程序每隔半秒钟输出一次返回值(显示出返回值从 1 变成 2)
2public class Test {
3 public static void main(String[] args) throws InterruptedException {
4 System.out.println(new TransClass().getNumber());
5 int count = 0;
6 while (true) {
7 Thread.sleep(500);
8 count++;
9 int number = new TransClass().getNumber();
10 System.out.println(number);
11 if (3 == number || count >= 10) {
12 break;
13 }
14 }
15 }
16}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected