jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1381737 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPResultConverter.java
Date Thu, 06 Sep 2012 20:05:28 GMT
Author: pmouawad
Date: Thu Sep  6 20:05:28 2012
New Revision: 1381737

URL: http://svn.apache.org/viewvc?rev=1381737&view=rev
Log:
Remove unused parameter

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPResultConverter.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPResultConverter.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPResultConverter.java?rev=1381737&r1=1381736&r2=1381737&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPResultConverter.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPResultConverter.java
Thu Sep  6 20:05:28 2012
@@ -97,7 +97,7 @@ public class HTTPResultConverter extends
             reader.moveDown();
             Object subItem = readItem(reader, context, res);
             if (!retrieveItem(reader, context, res, subItem)) {
-                retrieveHTTPItem(reader, context, res, subItem);
+                retrieveHTTPItem(reader, res, subItem);
             }
             reader.moveUp();
         }
@@ -111,18 +111,21 @@ public class HTTPResultConverter extends
         return res;
     }
 
-    private void retrieveHTTPItem(HierarchicalStreamReader reader, UnmarshallingContext context,
+    private void retrieveHTTPItem(HierarchicalStreamReader reader, 
             HTTPSampleResult res, Object subItem) {
         if (subItem instanceof URL) {
             res.setURL((URL) subItem);
-        } else if (reader.getNodeName().equals(TAG_COOKIES)) {
-            res.setCookies((String) subItem);
-        } else if (reader.getNodeName().equals(TAG_METHOD)) {
-            res.setHTTPMethod((String) subItem);
-        } else if (reader.getNodeName().equals(TAG_QUERY_STRING)) {
-            res.setQueryString((String) subItem);
-        } else if (reader.getNodeName().equals(TAG_REDIRECT_LOCATION)) {
-            res.setRedirectLocation((String) subItem);
+        } else {
+            String nodeName = reader.getNodeName();
+            if (nodeName.equals(TAG_COOKIES)) {
+                res.setCookies((String) subItem);
+            } else if (nodeName.equals(TAG_METHOD)) {
+                res.setHTTPMethod((String) subItem);
+            } else if (nodeName.equals(TAG_QUERY_STRING)) {
+                res.setQueryString((String) subItem);
+            } else if (nodeName.equals(TAG_REDIRECT_LOCATION)) {
+                res.setRedirectLocation((String) subItem);
+            }
         }
     }
 }
\ No newline at end of file



Mime
View raw message