axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject svn commit: r377637 - /webservices/axis/trunk/java/src/org/apache/axis/MessageContext.java
Date Tue, 14 Feb 2006 06:05:35 GMT
Author: ias
Date: Mon Feb 13 22:05:34 2006
New Revision: 377637

URL: http://svn.apache.org/viewcvs?rev=377637&view=rev
Log:
Remove unused imports and avoid enum as a variable name.

Modified:
    webservices/axis/trunk/java/src/org/apache/axis/MessageContext.java

Modified: webservices/axis/trunk/java/src/org/apache/axis/MessageContext.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/src/org/apache/axis/MessageContext.java?rev=377637&r1=377636&r2=377637&view=diff
==============================================================================
--- webservices/axis/trunk/java/src/org/apache/axis/MessageContext.java (original)
+++ webservices/axis/trunk/java/src/org/apache/axis/MessageContext.java Mon Feb 13 22:05:34
2006
@@ -26,8 +26,6 @@
 import org.apache.axis.constants.Style;
 import org.apache.axis.constants.Use;
 import org.apache.axis.handlers.soap.SOAPService;
-import org.apache.axis.message.SOAPEnvelope;
-import org.apache.axis.message.SOAPHeaderElement;
 import org.apache.axis.schema.SchemaVersion;
 import org.apache.axis.session.Session;
 import org.apache.axis.soap.SOAPConstants;
@@ -47,7 +45,6 @@
 import java.util.Enumeration;
 import java.util.Hashtable;
 import java.util.Iterator;
-import java.util.Vector;
 
 // fixme: fields are declared throughout this class, some at the top, and some
 //  near to where they are used. We should move all field declarations into a
@@ -474,7 +471,7 @@
 
     public void fromStream(ObjectInputStream in) throws Exception {
       Hashtable   table = (Hashtable) in.readObject();
-      Enumeration enum  = table.keys();
+      Enumeration e  = table.keys();
       Object      obj   = null ;
 
       if ( (obj = table.get("msg.req")) != null )
@@ -493,8 +490,8 @@
       useSOAPAction = "true".equals((String)table.get("msg.usa"));
       SOAPActionURI = (String) table.get("msg.act");
 
-      while ( enum.hasMoreElements() ) {
-        String name = (String) enum.nextElement();
+      while ( e.hasMoreElements() ) {
+        String name = (String) e.nextElement();
         if ( name.startsWith("__") )
           bag.put( name.substring(2), table.get(name) );
       }



Mime
View raw message