Browse files

test: no inline comment, comment space

  • Loading branch information...
1 parent 78f5fa8 commit f851c3ee43e1966903ff66ecda3fa7f66c2d2ecb @Tibor17 committed Dec 11, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/test/java/org/junit/tests/experimental/rules/TimeoutRuleTest.java
View
8 src/test/java/org/junit/tests/experimental/rules/TimeoutRuleTest.java
@@ -71,7 +71,8 @@ public void run5() throws IOException {
FileChannel channel = new RandomAccessFile(tmp, "rw").getChannel();
rnd.nextBytes(data);
ByteBuffer buffer = ByteBuffer.wrap(data);
- channel.write(buffer);//Interrupted thread closes channel and throws ClosedByInterruptException.
+ // Interrupted thread closes channel and throws ClosedByInterruptException.
+ channel.write(buffer);
channel.close();
tmp.delete();
}
@@ -80,7 +81,7 @@ public void run5() throws IOException {
@Test
public void run6() throws InterruptedIOException {
logger.append("run6");
- //Java IO throws InterruptedIOException on SUN machines.
+ // Java IO throws InterruptedIOException only on SUN machines.
throw new InterruptedIOException();
}
}
@@ -105,7 +106,8 @@ public void before() {
@After
public void after() {
- run4done = true;//to make sure that the thread won't continue at run4()
+ // set run4done to make sure that the thread won't continue at run4()
+ run4done = true;
run1Lock.unlock();
}

0 comments on commit f851c3e

Please sign in to comment.