tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkoli...@apache.org
Subject svn commit: r1195905 - /tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java
Date Tue, 01 Nov 2011 09:59:13 GMT
Author: kkolinko
Date: Tue Nov  1 09:59:13 2011
New Revision: 1195905

URL: http://svn.apache.org/viewvc?rev=1195905&view=rev
Log:
Followup to r1195531
Use standard Collections.enumeration() wrapper instead of our Enumerator class.

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java?rev=1195905&r1=1195904&r2=1195905&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/Parameters.java Tue Nov  1 09:59:13 2011
@@ -20,11 +20,11 @@ import java.io.IOException;
 import java.io.UnsupportedEncodingException;
 import java.nio.charset.Charset;
 import java.util.ArrayList;
+import java.util.Collections;
 import java.util.Enumeration;
 import java.util.HashMap;
 import java.util.Map;
 
-import org.apache.catalina.util.Enumerator;
 import org.apache.tomcat.util.buf.B2CConverter;
 import org.apache.tomcat.util.buf.ByteChunk;
 import org.apache.tomcat.util.buf.CharChunk;
@@ -113,7 +113,7 @@ public final class Parameters {
 
     public Enumeration<String> getParameterNames() {
         handleQueryParameters();
-        return new Enumerator<String>(paramHashValues.keySet());
+        return Collections.enumeration(paramHashValues.keySet());
     }
 
     // Shortcut.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message