hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1406317 - /httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/params/BasicHttpParams.java
Date Tue, 06 Nov 2012 20:47:51 GMT
Author: ggregory
Date: Tue Nov  6 20:47:50 2012
New Revision: 1406317

URL: http://svn.apache.org/viewvc?rev=1406317&view=rev
Log:
The expression of type String is already an instance of type String.

Modified:
    httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/params/BasicHttpParams.java

Modified: httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/params/BasicHttpParams.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/params/BasicHttpParams.java?rev=1406317&r1=1406316&r2=1406317&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/params/BasicHttpParams.java
(original)
+++ httpcomponents/httpcore/trunk/httpcore/src/main/java/org/apache/http/params/BasicHttpParams.java
Tue Nov  6 20:47:50 2012
@@ -170,11 +170,10 @@ public class BasicHttpParams extends Abs
      */
     public void copyParams(HttpParams target) {
         Iterator<Map.Entry<String, Object>> iter = this.parameters.entrySet().iterator();
-        while (iter.hasNext()) {
-            Map.Entry<String, Object> me = iter.next();
-            if (me.getKey() instanceof String)
-                target.setParameter(me.getKey(), me.getValue());
-        }
+		while (iter.hasNext()) {
+			Map.Entry<String, Object> me = iter.next();
+			target.setParameter(me.getKey(), me.getValue());
+		}
     }
 
     /**



Mime
View raw message