Skip to content

Commit 0e7e9de

Browse files
committed
Make package private classes final.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1397907 13f79535-47bb-0310-9956-ffa450edef68
1 parent 17c2635 commit 0e7e9de

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
import java.io.IOException;
2727

28-
class CSVLexer extends Lexer {
28+
final class CSVLexer extends Lexer {
2929

3030
/** ctor needs to be public so can be called dynamically by PerformanceTest class */
3131
public CSVLexer(final CSVFormat format, final ExtendedBufferedReader in) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
/**
2121
* Constants for this package.
2222
*/
23-
class Constants {
23+
final class Constants {
2424

2525
static final char BACKSPACE = '\b';
2626
static final char COMMA = ',';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* In particular the reader supports a look-ahead option, which allows you to see the next char returned by
3333
* {@link #read()}.
3434
*/
35-
class ExtendedBufferedReader extends BufferedReader {
35+
final class ExtendedBufferedReader extends BufferedReader {
3636

3737
/** The last char returned */
3838
private int lastChar = UNDEFINED;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* <p/>
2525
* It is used as contract between the lexer and the parser.
2626
*/
27-
class Token {
27+
final class Token {
2828

2929
/** length of the initial token (content-)buffer */
3030
private static final int INITIAL_TOKEN_LENGTH = 50;

0 commit comments

Comments
 (0)