Skip to content

Commit 7dd7e4b

Browse files
committed
Fix constant name
1 parent c9dfe72 commit 7dd7e4b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/test/java/org/apache/commons/io/DemuxInputStreamTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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";

0 commit comments

Comments
 (0)