Skip to content

Commit 2076464

Browse files
committed
class Lexer implements Closeable.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1602919 13f79535-47bb-0310-9956-ffa450edef68
1 parent bfa592d commit 2076464

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/org/apache/commons/csv/Lexer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@
3030
import static org.apache.commons.csv.Token.Type.INVALID;
3131
import static org.apache.commons.csv.Token.Type.TOKEN;
3232

33+
import java.io.Closeable;
3334
import java.io.IOException;
3435

3536
/**
3637
*
3738
*
3839
* @version $Id$
3940
*/
40-
final class Lexer {
41+
final class Lexer implements Closeable {
4142

4243
/**
4344
* Constant char to use for disabling comments, escapes and encapsulation. The value -2 is used because it
@@ -425,7 +426,7 @@ private boolean isMetaChar(final int ch) {
425426
* @throws IOException
426427
* If an I/O error occurs
427428
*/
428-
void close() throws IOException {
429+
public void close() throws IOException {
429430
reader.close();
430431
}
431432
}

0 commit comments

Comments
 (0)