This is an automated email from the ASF dual-hosted git repository.
fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git
The following commit(s) were added to refs/heads/master by this push:
new 2dc8f5b Make checkstyle happy
2dc8f5b is described below
commit 2dc8f5b511dfb814c47402b348bc1aebe2991880
Author: Felix Schumacher <[email protected]>
AuthorDate: Sun Jun 16 20:05:25 2019 +0200
Make checkstyle happy
Use braces with if statements and use uppercase L for long literals.
A bit of whitespace police while we are here anyway.
Bugzilla Id: 63490
---
.../org/apache/jmeter/threads/TestJMeterThread.java | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/test/src/org/apache/jmeter/threads/TestJMeterThread.java
b/test/src/org/apache/jmeter/threads/TestJMeterThread.java
index 042348e..cedd5b2 100644
--- a/test/src/org/apache/jmeter/threads/TestJMeterThread.java
+++ b/test/src/org/apache/jmeter/threads/TestJMeterThread.java
@@ -61,12 +61,15 @@ public class TestJMeterThread {
@Override
public boolean equals(Object obj) {
- if (this == obj)
+ if (this == obj) {
return true;
- if (!super.equals(obj))
+ }
+ if (!super.equals(obj)) {
return false;
- if (getClass() != obj.getClass())
+ }
+ if (getClass() != obj.getClass()) {
return false;
+ }
DummySampler other = (DummySampler) obj;
return called == other.called;
}
@@ -97,9 +100,9 @@ public class TestJMeterThread {
} else {
throw new RuntimeException("Throw for Bug TestJMeterThread");
}
- }
+ }
}
-
+
@Test(expected=NoClassDefFoundError.class)
public void testBug61661OnError(){
HashTree hashTree =new HashTree();
@@ -108,8 +111,7 @@ public class TestJMeterThread {
new JMeterThread.ThreadListenerTraverser(true);
hashTree.traverse(traverser);
}
-
-
+
@Test
public void testBug61661OnException(){
HashTree hashTree =new HashTree();
@@ -136,7 +138,7 @@ public class TestJMeterThread {
ThreadGroup threadGroup = new ThreadGroup();
threadGroup.setNumThreads(1);
- long maxDuration = 2000l;
+ long maxDuration = 2000L;
threadGroup.setDuration(maxDuration);
JMeterThread jMeterThread = new JMeterThread(testTree, threadGroup,
null);