Author: vgritsenko
Date: Thu Aug 9 07:23:06 2007
New Revision: 564214
URL: http://svn.apache.org/viewvc?view=rev&rev=564214
Log:
hashtable -> hashmap
Modified:
xml/xindice/trunk/java/src/org/apache/xindice/client/xmldb/CommonConfigurable.java
Modified:
xml/xindice/trunk/java/src/org/apache/xindice/client/xmldb/CommonConfigurable.java
URL:
http://svn.apache.org/viewvc/xml/xindice/trunk/java/src/org/apache/xindice/client/xmldb/CommonConfigurable.java?view=diff&rev=564214&r1=564213&r2=564214
==============================================================================
---
xml/xindice/trunk/java/src/org/apache/xindice/client/xmldb/CommonConfigurable.java
(original)
+++
xml/xindice/trunk/java/src/org/apache/xindice/client/xmldb/CommonConfigurable.java
Thu Aug 9 07:23:06 2007
@@ -22,31 +22,32 @@
import org.xmldb.api.base.Configurable;
import org.xmldb.api.base.XMLDBException;
-import java.util.Hashtable;
+import java.util.HashMap;
/**
- * Base class to handle property managment within the API implementation.
+ * Base class to handle property management within the API implementation.
*
* @version $Revision$, $Date$
*/
public abstract class CommonConfigurable implements Configurable {
- protected Hashtable config = null;
+ private HashMap config;
/**
* Constructor for the CommonConfigurable object
*/
public CommonConfigurable() {
- config = new Hashtable();
+ config = new HashMap();
}
/**
* Constructor for the CommonConfigurable object
+ *
* @param commonConfigurable from which the initial properties for this
* object are copied.
*/
public CommonConfigurable(CommonConfigurable commonConfigurable) {
- config = new Hashtable(commonConfigurable.config);
+ config = new HashMap(commonConfigurable.config);
}
/**
@@ -55,18 +56,18 @@
*
* @param name The Property name
* @param value The new Property value
- * @exception XMLDBException
+ * @throws XMLDBException never
*/
public void setProperty(String name, String value) throws XMLDBException {
config.put(name, value);
}
/**
- * Gets the Property associated with name
+ * Gets the property value associated with name
*
* @param name The name of the property to retrieve.
* @return The Property value
- * @exception XMLDBException
+ * @throws XMLDBException never
*/
public String getProperty(String name) throws XMLDBException {
return (String) config.get(name);