Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 55771 invoked from network); 14 Feb 2006 06:05:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Feb 2006 06:05:58 -0000 Received: (qmail 95273 invoked by uid 500); 14 Feb 2006 06:05:57 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 95250 invoked by uid 500); 14 Feb 2006 06:05:57 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 95239 invoked by uid 99); 14 Feb 2006 06:05:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2006 22:05:57 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 13 Feb 2006 22:05:56 -0800 Received: (qmail 55701 invoked by uid 65534); 14 Feb 2006 06:05:36 -0000 Message-ID: <20060214060536.55700.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r377637 - /webservices/axis/trunk/java/src/org/apache/axis/MessageContext.java Date: Tue, 14 Feb 2006 06:05:35 -0000 To: axis-cvs@ws.apache.org From: ias@apache.org X-Mailer: svnmailer-1.0.6 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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) ); }