jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1227026 - /jmeter/trunk/src/examples/org/apache/jmeter/examples/testbeans/example2/Example2.java
Date Wed, 04 Jan 2012 02:07:11 GMT
Author: sebb
Date: Wed Jan  4 02:07:11 2012
New Revision: 1227026

URL: http://svn.apache.org/viewvc?rev=1227026&view=rev
Log:
Use specific locale for case conversion (Findbugs)

Modified:
    jmeter/trunk/src/examples/org/apache/jmeter/examples/testbeans/example2/Example2.java

Modified: jmeter/trunk/src/examples/org/apache/jmeter/examples/testbeans/example2/Example2.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/examples/org/apache/jmeter/examples/testbeans/example2/Example2.java?rev=1227026&r1=1227025&r2=1227026&view=diff
==============================================================================
--- jmeter/trunk/src/examples/org/apache/jmeter/examples/testbeans/example2/Example2.java
(original)
+++ jmeter/trunk/src/examples/org/apache/jmeter/examples/testbeans/example2/Example2.java
Wed Jan  4 02:07:11 2012
@@ -18,6 +18,8 @@
 
 package org.apache.jmeter.examples.testbeans.example2;
 
+import java.util.Locale;
+
 import org.apache.jmeter.samplers.AbstractSampler;
 import org.apache.jmeter.samplers.Entry;
 import org.apache.jmeter.samplers.SampleResult;
@@ -39,7 +41,7 @@ public class Example2 extends AbstractSa
         res.setSamplerData(myStringProperty);
         res.sampleStart();
         // Do something ...
-        res.setResponseData(myStringProperty.toLowerCase(), null);
+        res.setResponseData(myStringProperty.toLowerCase(Locale.ENGLISH), null);
         res.setDataType(SampleResult.TEXT);
         res.sampleEnd();
         res.setSuccessful(true);



Mime
View raw message