You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2007/07/02 03:24:59 UTC
svn commit: r552379 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java
Author: dims
Date: Sun Jul 1 18:24:57 2007
New Revision: 552379
URL: http://svn.apache.org/viewvc?view=rev&rev=552379
Log:
don't create hashmap unless it's needed to actually store something
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java?view=diff&rev=552379&r1=552378&r2=552379
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/Options.java Sun Jul 1 18:24:57 2007
@@ -337,12 +337,10 @@
* @return the value related to this key. <code>null</code>, if not found.
*/
public Object getProperty(String key) {
- // make sure that the Options properties exists
- if (this.properties == null) {
- this.properties = new HashMap();
+ Object myPropValue = null;
+ if (this.properties != null) {
+ myPropValue = properties.get(key);
}
-
- Object myPropValue = properties.get(key);
if (myPropValue == null && parent != null) {
return parent.getProperty(key);
}
@@ -1177,7 +1175,7 @@
//---------------------------------------------------------
// HashMap properties
- HashMap tmpHM = new HashMap(properties);
+ HashMap tmpHM = new HashMap(getProperties());
ObjectStateUtils.writeHashMap(out, tmpHM, logCorrelationIDString + ".properties");
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org