MCPcopy Create free account
hub / github.com/LFYSec/MScan / main

Method main

src/test/resources/dataflow/constprop/alias/MultiObjs.java:3–15  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

1class MultiObjs {
2
3 public static void main(String[] args) {
4 A a1 = new A();
5 a1.f = 2333;
6 A a2 = new A();
7 a2.f = 666;
8 A a3 = new A();
9 a3.f = 666;
10 A aa = args.length > 0 ? a1 : a2;
11 A aaa = args.length > 0 ? a2 : a3;
12 int x = aa.f;
13 int y = aaa.f;
14 int z = a1.f;
15 }
16}
17
18class A {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected