File tree 1 file changed +5
-3
lines changed
src/test/java/org/junit/tests/experimental/rules 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ public void run5() throws IOException {
71
71
FileChannel channel = new RandomAccessFile (tmp , "rw" ).getChannel ();
72
72
rnd .nextBytes (data );
73
73
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 );
75
76
channel .close ();
76
77
tmp .delete ();
77
78
}
@@ -80,7 +81,7 @@ public void run5() throws IOException {
80
81
@ Test
81
82
public void run6 () throws InterruptedIOException {
82
83
logger .append ("run6" );
83
- //Java IO throws InterruptedIOException on SUN machines.
84
+ // Java IO throws InterruptedIOException only on SUN machines.
84
85
throw new InterruptedIOException ();
85
86
}
86
87
}
@@ -105,7 +106,8 @@ public void before() {
105
106
106
107
@ After
107
108
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 ;
109
111
run1Lock .unlock ();
110
112
}
111
113
You can’t perform that action at this time.
0 commit comments