File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/io Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments