jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380057 - /jmeter/trunk/src/components/org/apache/jmeter/timers/BSFTimer.java
Date Sun, 02 Sep 2012 21:13:35 GMT
Author: pmouawad
Date: Sun Sep  2 21:13:34 2012
New Revision: 1380057

URL: http://svn.apache.org/viewvc?rev=1380057&view=rev
Log:
Use parseLong instead of creating useless wrapper

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/timers/BSFTimer.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/timers/BSFTimer.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/timers/BSFTimer.java?rev=1380057&r1=1380056&r2=1380057&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/timers/BSFTimer.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/timers/BSFTimer.java Sun Sep  2 21:13:34
2012
@@ -41,7 +41,7 @@ public class BSFTimer extends BSFTestEle
                 log.warn("Script did not return a value");
                 return 0;
             }
-            delay = Long.valueOf(o.toString()).longValue();
+            delay = Long.parseLong(o.toString());
         } catch (NumberFormatException e) {
             log.warn("Problem in BSF script "+e);
         } catch (BSFException e) {



Mime
View raw message