commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1586342 - in /commons/proper/io/trunk/src/main/java/org/apache/commons/io/input: BOMInputStream.java BoundedInputStream.java
Date Thu, 10 Apr 2014 15:36:30 GMT
Author: ggregory
Date: Thu Apr 10 15:36:29 2014
New Revision: 1586342

URL: http://svn.apache.org/r1586342
Log:
Use import static org.apache.commons.io.IOUtils.EOF instead of local constants.

Modified:
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/BOMInputStream.java
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/BoundedInputStream.java

Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/BOMInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/BOMInputStream.java?rev=1586342&r1=1586341&r2=1586342&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/BOMInputStream.java
(original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/BOMInputStream.java
Thu Apr 10 15:36:29 2014
@@ -16,6 +16,8 @@
  */
 package org.apache.commons.io.input;
 
+import static org.apache.commons.io.IOUtils.EOF;
+
 import java.io.IOException;
 import java.io.InputStream;
 import java.util.Arrays;
@@ -85,7 +87,6 @@ import org.apache.commons.io.ByteOrderMa
  * @since 2.0
  */
 public class BOMInputStream extends ProxyInputStream {
-    private static final int EOF = -1;
     private final boolean include;
     /**
      * BOMs are sorted from longest to shortest.

Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/BoundedInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/BoundedInputStream.java?rev=1586342&r1=1586341&r2=1586342&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/BoundedInputStream.java
(original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/input/BoundedInputStream.java
Thu Apr 10 15:36:29 2014
@@ -16,6 +16,8 @@
  */
 package org.apache.commons.io.input;
 
+import static org.apache.commons.io.IOUtils.EOF;
+
 import java.io.IOException;
 import java.io.InputStream;
 
@@ -35,8 +37,6 @@ import java.io.InputStream;
  */
 public class BoundedInputStream extends InputStream {
 
-    private static final int EOF = -1;
-
     /** the wrapped input stream */
     private final InputStream in;
 



Mime
View raw message