Author: sebb
Date: Sun Apr 27 17:17:15 2008
New Revision: 652032
URL: http://svn.apache.org/viewvc?rev=652032&view=rev
Log:
Tidy up code
Modified:
jakarta/jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java
Modified:
jakarta/jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java?rev=652032&r1=652031&r2=652032&view=diff
==============================================================================
---
jakarta/jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java
(original)
+++
jakarta/jmeter/trunk/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java
Sun Apr 27 17:17:15 2008
@@ -45,7 +45,7 @@
*/
public class JUnitSampler extends AbstractSampler {
- private static final long serialVersionUID = 221L; // Remember to
change this when the class changes ...
+ private static final long serialVersionUID = 232L; // Remember to
change this when the class changes ...
/**
* Property key representing the classname of the JavaSamplerClient to
@@ -482,15 +482,13 @@
} catch (NoSuchMethodException e) {
log.info("String constructor:: " + e.getMessage());
}
- if (con == null ){
- try {
- con = theclazz.getDeclaredConstructor(new Class[0]);
- if (con != null){
- params = new Object[]{};
- }
- } catch (NoSuchMethodException e) {
- log.info("Empty constructor:: " + e.getMessage());
+ try {
+ con = theclazz.getDeclaredConstructor(new Class[0]);
+ if (con != null){
+ params = new Object[]{};
}
+ } catch (NoSuchMethodException e) {
+ log.info("Empty constructor:: " + e.getMessage());
}
try {
// if the string constructor is not null, we use it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]