Files
openide/plugins/java-decompiler/engine/testData/results/TestEmptyBlocks.dec
Mikhail Pyltsin 5bb7a69aef [java-decompiler] IDEA-346312 adapt patch 008
- update copyright
- fix warnings
- fix tests
- comment workaround for names
- few tests are broken still
- fix inappropriate identifier

GitOrigin-RevId: 51f6f7c3bbb2a96e5b745668c19d9bfc297336c8
2024-10-10 09:55:48 +00:00

55 lines
800 B
Plaintext

import java.util.Random;
public class TestEmptyBlocks {
public static void foo() {
try {
boolean i = false;// 22
} catch (Exception var1) {// 23
}
for(int i = 0; i < 5; ++i) {// 27
}
while((new Random()).nextBoolean()) {// 31
}
if ((new Random()).nextBoolean()) {// 35
}
}// 38
}
class 'TestEmptyBlocks' {
method 'foo ()V' {
0 5
1 5
5 6
6 9
7 9
8 9
9 9
a 9
d 9
e 9
f 9
1a 12
1b 12
1c 12
2a 15
2b 15
2c 15
2d 15
30 18
}
}
Lines mapping:
22 <-> 6
23 <-> 7
27 <-> 10
31 <-> 13
35 <-> 16
38 <-> 19
Not mapped:
25