From 2076464484782f3c4a17c35f2d50f73bd936bd75 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Mon, 16 Jun 2014 16:16:48 +0000 Subject: [PATCH] class Lexer implements Closeable. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1602919 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/csv/Lexer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/csv/Lexer.java b/src/main/java/org/apache/commons/csv/Lexer.java index da435958..6a4075e0 100644 --- a/src/main/java/org/apache/commons/csv/Lexer.java +++ b/src/main/java/org/apache/commons/csv/Lexer.java @@ -30,6 +30,7 @@ import static org.apache.commons.csv.Token.Type.EORECORD; import static org.apache.commons.csv.Token.Type.INVALID; import static org.apache.commons.csv.Token.Type.TOKEN; +import java.io.Closeable; import java.io.IOException; /** @@ -37,7 +38,7 @@ import java.io.IOException; * * @version $Id$ */ -final class Lexer { +final class Lexer implements Closeable { /** * Constant char to use for disabling comments, escapes and encapsulation. The value -2 is used because it @@ -425,7 +426,7 @@ final class Lexer { * @throws IOException * If an I/O error occurs */ - void close() throws IOException { + public void close() throws IOException { reader.close(); } }