jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380856 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java
Date Tue, 04 Sep 2012 20:26:07 GMT
Author: pmouawad
Date: Tue Sep  4 20:26:06 2012
New Revision: 1380856

URL: http://svn.apache.org/viewvc?rev=1380856&view=rev
Log:
Use parse instead of useless Wrappers

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java?rev=1380856&r1=1380855&r2=1380856&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CookieManager.java
Tue Sep  4 20:26:06 2012
@@ -218,8 +218,8 @@ public class CookieManager extends Confi
                     if (st[_path].length()==0) {
                         st[_path] = "/"; //$NON-NLS-1$
                     }
-                    boolean secure = Boolean.valueOf(st[_secure]).booleanValue();
-                    long expires = Long.valueOf(st[_expires]).longValue();
+                    boolean secure = Boolean.parseBoolean(st[_secure]);
+                    long expires = Long.parseLong(st[_expires]);
                     if (expires==Long.MAX_VALUE) {
                         expires=0;
                     }



Mime
View raw message