Skip to content

Commit bdd4555

Browse files
committed
Use import static org.apache.commons.io.IOUtils.EOF instead of local constants.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1586342 13f79535-47bb-0310-9956-ffa450edef68
1 parent 513f20a commit bdd4555

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
*/
1717
package org.apache.commons.io.input;
1818

19+
import static org.apache.commons.io.IOUtils.EOF;
20+
1921
import java.io.IOException;
2022
import java.io.InputStream;
2123
import java.util.Arrays;
@@ -85,7 +87,6 @@
8587
* @since 2.0
8688
*/
8789
public class BOMInputStream extends ProxyInputStream {
88-
private static final int EOF = -1;
8990
private final boolean include;
9091
/**
9192
* BOMs are sorted from longest to shortest.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
*/
1717
package org.apache.commons.io.input;
1818

19+
import static org.apache.commons.io.IOUtils.EOF;
20+
1921
import java.io.IOException;
2022
import java.io.InputStream;
2123

@@ -35,8 +37,6 @@
3537
*/
3638
public class BoundedInputStream extends InputStream {
3739

38-
private static final int EOF = -1;
39-
4040
/** the wrapped input stream */
4141
private final InputStream in;
4242

0 commit comments

Comments
 (0)