aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShevek <[email protected]>2013-11-04 15:11:03 -0800
committerShevek <[email protected]>2013-11-04 15:11:03 -0800
commit95352729bdecef0b64fe1acd076c123d87068828 (patch)
treebdcbafdd873837d2e7f7b9a1961fadaae6efcb5a
parentf44f568b98a8f909ff5235a9501d102d0f9d9c0d (diff)
StringLexerSource doesn't need to throw IOException.
-rw-r--r--src/java/org/anarres/cpp/StringLexerSource.java6
1 files 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);
}