Skip to content

Commit f851c3e

Browse files
author
Tibor Digana
committed
test: no inline comment, comment space
1 parent 78f5fa8 commit f851c3e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/test/java/org/junit/tests/experimental/rules/TimeoutRuleTest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ public void run5() throws IOException {
7171
FileChannel channel = new RandomAccessFile(tmp, "rw").getChannel();
7272
rnd.nextBytes(data);
7373
ByteBuffer buffer = ByteBuffer.wrap(data);
74-
channel.write(buffer);//Interrupted thread closes channel and throws ClosedByInterruptException.
74+
// Interrupted thread closes channel and throws ClosedByInterruptException.
75+
channel.write(buffer);
7576
channel.close();
7677
tmp.delete();
7778
}
@@ -80,7 +81,7 @@ public void run5() throws IOException {
8081
@Test
8182
public void run6() throws InterruptedIOException {
8283
logger.append("run6");
83-
//Java IO throws InterruptedIOException on SUN machines.
84+
// Java IO throws InterruptedIOException only on SUN machines.
8485
throw new InterruptedIOException();
8586
}
8687
}
@@ -105,7 +106,8 @@ public void before() {
105106

106107
@After
107108
public void after() {
108-
run4done = true;//to make sure that the thread won't continue at run4()
109+
// set run4done to make sure that the thread won't continue at run4()
110+
run4done = true;
109111
run1Lock.unlock();
110112
}
111113

0 commit comments

Comments
 (0)