mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-17 02:37:25 +00:00
ICU-5801 Remove LinkedHashMap/LRUMap/SoftCache, which are no longer used. They were replaced with ICUCache/SimpleCache.
X-SVN-Rev: 22173
This commit is contained in:
parent
ca953c724c
commit
198f767c63
2 changed files with 0 additions and 44 deletions
|
@ -4,7 +4,6 @@ src/com/ibm/icu/impl/DateNumberFormat.java
|
|||
src/com/ibm/icu/impl/ICUResourceBundle.java
|
||||
src/com/ibm/icu/impl/ICUResourceBundleImpl.java
|
||||
src/com/ibm/icu/impl/ICUResourceBundleReader.java
|
||||
src/com/ibm/icu/impl/LRUMap.java
|
||||
src/com/ibm/icu/impl/PatternTokenizer.java
|
||||
src/com/ibm/icu/impl/Utility.java
|
||||
src/com/ibm/icu/impl/ByteBuffer.java
|
||||
|
|
|
@ -14,8 +14,6 @@ import java.util.HashMap;
|
|||
import java.util.Locale;
|
||||
|
||||
import com.ibm.icu.dev.test.TestFmwk;
|
||||
import com.ibm.icu.impl.LRUMap;
|
||||
import com.ibm.icu.impl.LinkedHashMap;
|
||||
import com.ibm.icu.impl.OlsonTimeZone;
|
||||
import com.ibm.icu.impl.TimeZoneAdapter;
|
||||
import com.ibm.icu.math.BigDecimal;
|
||||
|
@ -580,45 +578,6 @@ public class SerializableTest extends TestFmwk.TestGroup
|
|||
return mca.toString().equals(mcb.toString());
|
||||
}
|
||||
}
|
||||
|
||||
private static class LRUMapHandler implements Handler
|
||||
{
|
||||
public Object[] getTestObjects()
|
||||
{
|
||||
LRUMap[] maps = new LRUMap[1];
|
||||
maps[0] = new LRUMap();
|
||||
maps[0].put("1", "a");
|
||||
maps[0].put("2", "b");
|
||||
return maps;
|
||||
}
|
||||
public boolean hasSameBehavior(Object a, Object b)
|
||||
{
|
||||
LRUMap mapA = (LRUMap) a;
|
||||
LRUMap mapB = (LRUMap) b;
|
||||
return mapA.equals(mapB);
|
||||
}
|
||||
}
|
||||
|
||||
private static class LinkedHashMapHandler implements Handler
|
||||
{
|
||||
public Object[] getTestObjects()
|
||||
{
|
||||
LinkedHashMap[] maps = new LinkedHashMap[2];
|
||||
maps[0] = new LinkedHashMap();
|
||||
maps[1] = new LinkedHashMap(16, 0.75F, true);
|
||||
for (int i = 0; i < 2; i++) {
|
||||
maps[i].put("1", "a");
|
||||
maps[i].put("2", "b");
|
||||
}
|
||||
return maps;
|
||||
}
|
||||
public boolean hasSameBehavior(Object a, Object b)
|
||||
{
|
||||
LinkedHashMap mapA = (LinkedHashMap) a;
|
||||
LinkedHashMap mapB = (LinkedHashMap) b;
|
||||
return mapA.equals(mapB);
|
||||
}
|
||||
}
|
||||
|
||||
private static HashMap map = new HashMap();
|
||||
|
||||
|
@ -633,8 +592,6 @@ public class SerializableTest extends TestFmwk.TestGroup
|
|||
map.put("com.ibm.icu.util.TimeArrayTimeZoneRule", new TimeArrayTimeZoneRuleHandler());
|
||||
map.put("com.ibm.icu.util.ULocale", new ULocaleHandler());
|
||||
map.put("com.ibm.icu.util.Currency", new CurrencyHandler());
|
||||
map.put("com.ibm.icu.impl.LinkedHashMap", new LinkedHashMapHandler());
|
||||
map.put("com.ibm.icu.impl.LRUMap", new LRUMapHandler());
|
||||
map.put("com.ibm.icu.impl.OlsonTimeZone", new OlsonTimeZoneHandler());
|
||||
map.put("com.ibm.icu.impl.TimeZoneAdapter", new TimeZoneAdapterHandler());
|
||||
map.put("com.ibm.icu.math.BigDecimal", new BigDecimalHandler());
|
||||
|
|
Loading…
Add table
Reference in a new issue