From 95352729bdecef0b64fe1acd076c123d87068828 Mon Sep 17 00:00:00 2001 From: Shevek Date: Mon, 4 Nov 2013 15:11:03 -0800 Subject: StringLexerSource doesn't need to throw IOException. --- src/java/org/anarres/cpp/StringLexerSource.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/java/org/anarres/cpp/StringLexerSource.java b/src/java/org/anarres/cpp/StringLexerSource.java index 2bf35f8..2285097 100644 --- a/src/java/org/anarres/cpp/StringLexerSource.java +++ b/src/java/org/anarres/cpp/StringLexerSource.java @@ -40,8 +40,7 @@ public class StringLexerSource extends LexerSource { * @param ppvalid true if preprocessor directives are to be * honoured within the string. */ - public StringLexerSource(String string, boolean ppvalid) - throws IOException { + public StringLexerSource(String string, boolean ppvalid) { super(new StringReader(string), ppvalid); } @@ -51,8 +50,7 @@ public class StringLexerSource extends LexerSource { * By default, preprocessor directives are not honoured within * the string. */ - public StringLexerSource(String string) - throws IOException { + public StringLexerSource(String string) { this(string, false); } -- cgit v1.2.3