mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
methods renamed
This commit is contained in:
@@ -382,7 +382,7 @@ public class FileDownloaderImpl implements FileDownloader {
|
||||
}
|
||||
else {
|
||||
myText2Stack.remove(subTask);
|
||||
String prev = myText2Stack.getLastAddedValue();
|
||||
String prev = myText2Stack.getLastValue();
|
||||
if (prev != null) {
|
||||
myParent.setText2(prev);
|
||||
}
|
||||
|
||||
@@ -211,11 +211,11 @@ public class LinkedHashMap<K, V> extends AbstractMap<K, V> implements Map<K, V>
|
||||
size = 0;
|
||||
}
|
||||
|
||||
public K getLastAddedKey() {
|
||||
public K getLastKey() {
|
||||
return top != null ? top.key : null;
|
||||
}
|
||||
|
||||
public V getLastAddedValue() {
|
||||
public V getLastValue() {
|
||||
return top != null ? top.value : null;
|
||||
}
|
||||
|
||||
|
||||
@@ -201,17 +201,17 @@ public class LinkedHashMapTest {
|
||||
map.put(3, "c");
|
||||
map.get(1);
|
||||
map.get(2);
|
||||
assertEquals(3, map.getLastAddedKey().intValue());
|
||||
assertEquals("c", map.getLastAddedValue());
|
||||
assertEquals(3, map.getLastKey().intValue());
|
||||
assertEquals("c", map.getLastValue());
|
||||
map.remove(2);
|
||||
assertEquals(3, map.getLastAddedKey().intValue());
|
||||
assertEquals("c", map.getLastAddedValue());
|
||||
assertEquals(3, map.getLastKey().intValue());
|
||||
assertEquals("c", map.getLastValue());
|
||||
map.remove(3);
|
||||
assertEquals(1, map.getLastAddedKey().intValue());
|
||||
assertEquals("a", map.getLastAddedValue());
|
||||
assertEquals(1, map.getLastKey().intValue());
|
||||
assertEquals("a", map.getLastValue());
|
||||
map.remove(1);
|
||||
assertNull(map.getLastAddedKey());
|
||||
assertNull(map.getLastAddedValue());
|
||||
assertNull(map.getLastKey());
|
||||
assertNull(map.getLastValue());
|
||||
}
|
||||
|
||||
//@Test
|
||||
|
||||
Reference in New Issue
Block a user