File tree Expand file tree Collapse file tree
src/test/java/org/apache/commons/io Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public void run() {
6262 // System.out.println( "Reading: " + (char)ch );
6363 stringBuffer .append ((char ) ch );
6464
65- final int sleepMillis = Math .abs (c_random .nextInt () % 10 );
65+ final int sleepMillis = Math .abs (RANDOM .nextInt () % 10 );
6666 TestUtils .sleep (sleepMillis );
6767 ch = demuxInputStream .read ();
6868 }
@@ -91,7 +91,7 @@ public void run() {
9191 try {
9292 // System.out.println( "Writing: " + (char)byteArray[ i ] );
9393 demuxOutputStream .write (element );
94- final int sleepMillis = Math .abs (c_random .nextInt () % 10 );
94+ final int sleepMillis = Math .abs (RANDOM .nextInt () % 10 );
9595 TestUtils .sleep (sleepMillis );
9696 } catch (final Exception e ) {
9797 e .printStackTrace ();
@@ -100,7 +100,7 @@ public void run() {
100100 }
101101 }
102102
103- private static final Random c_random = new Random ();
103+ private static final Random RANDOM = new Random ();
104104 private static final String DATA1 = "Data for thread1" ;
105105
106106 private static final String DATA2 = "Data for thread2" ;
You can’t perform that action at this time.
0 commit comments