master
Egor.Ushakov 10 years ago
parent 4ee8ad716d
commit 41fc5493e2
  1. 7
      src/org/jetbrains/java/decompiler/main/TextBuffer.java
  2. 2
      testData/results/TestClassVar.dec

@ -307,7 +307,12 @@ public class TextBuffer {
if (lineMapping.length > 0) { if (lineMapping.length > 0) {
myLineMapping = new HashMap<Integer, Integer>(); myLineMapping = new HashMap<Integer, Integer>();
for (int i = 0; i < lineMapping.length; i+=2) { for (int i = 0; i < lineMapping.length; i+=2) {
myLineMapping.put(lineMapping[i+1], lineMapping[i]); int key = lineMapping[i + 1];
int value = lineMapping[i];
Integer existing = myLineMapping.get(key);
if (existing == null || value < existing) {
myLineMapping.put(key, value);
}
} }
} }
} }

@ -27,7 +27,7 @@ public class TestClassVar {
while(var1 < 10) {// 47 while(var1 < 10) {// 47
int var2; int var2;
for(var2 = var1; var1 < 10 && var1 == 0; ++var1) {// 51 for(var2 = var1; var1 < 10 && var1 == 0; ++var1) {// 49
; ;
} }

Loading…
Cancel
Save