Debian Codegraph @

framework/tests/all-systems/Arrays.java

raw
1 class Arrays {
2 public static final String[] RELATIONSHIP_LABELS = {
3 "SJJ", "SJU", "SUJ", "SUU", "DJJ", "DJU", "DUJ", "DUU", "JM", "UM", "MJ", "MU"
4 };
5
6 public static final int[] ia = {1, -2, 3};
7
8 // Note that "-1.0" is _NOT_ a double literal! It's a unary minus,
9 // that needs to be handled correctly.
10 public static final double[] elts_plus_minus_one_float = {-1.0, 1.0, +1.0, 1.0 / 2.0};
11
12 String[] vis = new String[] {"a", "b"};
13
14 @SuppressWarnings("nullness") // Don't want to depend on @Nullable
15 void m() {
16 class VarInfo {}
17 VarInfo v1 = null;
18 VarInfo v2 = null;
19 VarInfo[] vis = null;
20
21 if (v2 == null) {
22 vis = new VarInfo[] {v1};
23 } else {
24 vis = new VarInfo[] {v1, v2};
25 }
26 }
27 }