Skip to content

Commit

Permalink
and the constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
SingingBush committed Jun 5, 2018
1 parent f5017e4 commit 5dc71eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/singingbush/sdl/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class Parser {
/**
* Create an SDL parser
*/
Parser(@NotNull Reader reader) {
public Parser(@NotNull Reader reader) {
this.reader = (reader instanceof BufferedReader)
? ((BufferedReader)reader)
: new BufferedReader(reader);
Expand All @@ -62,7 +62,7 @@ public class Parser {
* @param sdlText a string of SDLang
* @since 1.4.0
*/
Parser(@NotNull final String sdlText) {
public Parser(@NotNull final String sdlText) {
this(new StringReader(new String(sdlText.getBytes(), UTF_8)));
//this(new InputStreamReader(new ByteArrayInputStream(sdlText.getBytes())));
}
Expand All @@ -72,7 +72,7 @@ public class Parser {
* @param file A UTF-8 encoded .sdl file
* @since 1.4.0
*/
Parser(@NotNull final File file) throws FileNotFoundException {
public Parser(@NotNull final File file) throws FileNotFoundException {
this(new InputStreamReader(new FileInputStream(file), UTF_8));
}

Expand All @@ -81,7 +81,7 @@ public class Parser {
* @throws IOException If a problem is encountered with the reader
* @throws SDLParseException If the document is malformed
*/
List<Tag> parse() throws IOException,SDLParseException {
public List<Tag> parse() throws IOException, SDLParseException {
final List<Tag> tags = new ArrayList<>();
List<Token> toks;

Expand Down

0 comments on commit 5dc71eb

Please sign in to comment.