Skip to content

Commit 1338f29

Browse files
committed
Flip null test
1 parent fe11202 commit 1338f29

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/org/apache/commons/io/input/DemuxInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void close() throws IOException {
6969
@Override
7070
public int read() throws IOException {
7171
final InputStream inputStream = inputStreamLocal.get();
72-
if (null != inputStream) {
72+
if (inputStream != null) {
7373
return inputStream.read();
7474
}
7575
return EOF;

src/main/java/org/apache/commons/io/output/DemuxOutputStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void close() throws IOException {
6868
public void flush() throws IOException {
6969
@SuppressWarnings("resource")
7070
final OutputStream output = outputStreamThreadLocal.get();
71-
if (null != output) {
71+
if (output != null) {
7272
output.flush();
7373
}
7474
}
@@ -83,7 +83,7 @@ public void flush() throws IOException {
8383
public void write(final int ch) throws IOException {
8484
@SuppressWarnings("resource")
8585
final OutputStream output = outputStreamThreadLocal.get();
86-
if (null != output) {
86+
if (output != null) {
8787
output.write(ch);
8888
}
8989
}

0 commit comments

Comments
 (0)