Kaydet (Commit) 9def9b46 authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Michael Stahl

Java5 update - convert Hashtable to HashMap

Change-Id: I59a7448b6c0a840b0f04b765ef9d5272dceb47b3
üst baccb18f
......@@ -80,8 +80,8 @@ public class ServiceManager implements XMultiServiceFactory,
};
ArrayList eventListener;
java.util.Hashtable factoriesByImplNames;
java.util.Hashtable factoriesByServiceNames; // keys:
java.util.HashMap factoriesByImplNames;
java.util.HashMap factoriesByServiceNames; // keys:
private com.sun.star.uno.XComponentContext m_xDefaultContext;
......@@ -90,8 +90,8 @@ public class ServiceManager implements XMultiServiceFactory,
*/
public ServiceManager() {
eventListener = new ArrayList();
factoriesByImplNames = new java.util.Hashtable();
factoriesByServiceNames = new java.util.Hashtable();
factoriesByImplNames = new java.util.HashMap();
factoriesByServiceNames = new java.util.HashMap();
m_xDefaultContext = null;
}
/**
......@@ -99,8 +99,8 @@ public class ServiceManager implements XMultiServiceFactory,
*/
public ServiceManager( XComponentContext xContext ) {
eventListener = new ArrayList();
factoriesByImplNames = new java.util.Hashtable();
factoriesByServiceNames = new java.util.Hashtable();
factoriesByImplNames = new java.util.HashMap();
factoriesByServiceNames = new java.util.HashMap();
m_xDefaultContext = xContext;
}
......@@ -341,10 +341,10 @@ public class ServiceManager implements XMultiServiceFactory,
int i = 0;
String[] availableServiceNames = new String[factoriesByServiceNames.size()];
java.util.Enumeration keys = factoriesByServiceNames.keys();
java.util.Iterator keys = factoriesByServiceNames.keySet().iterator();
while (keys.hasMoreElements())
availableServiceNames[i++] = (String) keys.nextElement();
while (keys.hasNext())
availableServiceNames[i++] = (String) keys.next();
return availableServiceNames;
}
......@@ -634,7 +634,7 @@ public class ServiceManager implements XMultiServiceFactory,
public XEnumeration createEnumeration()
throws com.sun.star.uno.RuntimeException
{
return new ServiceEnumerationImpl( factoriesByImplNames.elements() );
return new ServiceEnumerationImpl( factoriesByImplNames.values().iterator() );
}
/**
......
......@@ -19,7 +19,7 @@ package com.sun.star.lib.uno.protocols.urp;
import java.io.IOException;
import java.util.Hashtable;
import java.util.HashMap;
import com.sun.star.uno.IBridge;
......@@ -30,7 +30,7 @@ import com.sun.star.uno.Type;
class TestBridge implements IBridge {
static public final boolean DEBUG = false;
Hashtable _hashtable = new Hashtable();
HashMap _hashtable = new HashMap();
IEnvironment _source ;//= new com.sun.star.lib.uno.environments.java.java_environment(null);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment