From 547134e1cbb29bb51a75781f559243fcea8f3860 Mon Sep 17 00:00:00 2001 From: Shevek Date: Mon, 15 May 2017 11:50:41 -0700 Subject: InputLexerSource: Don't force buffering of the reader. --- src/main/java/org/anarres/cpp/InputLexerSource.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java/org') diff --git a/src/main/java/org/anarres/cpp/InputLexerSource.java b/src/main/java/org/anarres/cpp/InputLexerSource.java index 62612d7..8064a9a 100644 --- a/src/main/java/org/anarres/cpp/InputLexerSource.java +++ b/src/main/java/org/anarres/cpp/InputLexerSource.java @@ -45,8 +45,12 @@ public class InputLexerSource extends LexerSource { this(new InputStreamReader(input, charset)); } + public InputLexerSource(@Nonnull Reader input, boolean ppvalid) { + super(input, true); + } + public InputLexerSource(@Nonnull Reader input) { - super(toBufferedReader(input), true); + this(input, true); } @Override -- cgit v1.2.3