fixed test

This commit is contained in:
Egor.Ushakov 2014-12-26 13:32:54 +03:00
parent 4ee8ad716d
commit 41fc5493e2
2 changed files with 7 additions and 2 deletions

View File

@ -307,7 +307,12 @@ public class TextBuffer {
if (lineMapping.length > 0) {
myLineMapping = new HashMap<Integer, Integer>();
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);
}
}
}
}

View File

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