Skip to content

Commit e4af1e7

Browse files
committed
Remove JavaCC ParseException
Bump version to 0.9.2
1 parent 6734134 commit e4af1e7

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

pom.xml

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

2323
<groupId>com.github.odiszapc</groupId>
2424
<artifactId>nginxparser</artifactId>
25-
<version>0.9.1</version>
25+
<version>0.9.2</version>
2626
<packaging>jar</packaging>
2727

2828
<name>${project.groupId}:${project.artifactId}</name>

src/main/java/com/github/odiszapc/nginxparser/NgxConfig.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ public class NgxConfig extends NgxBlock {
4747
* @param path Path to config file
4848
* @return Config object
4949
* @throws IOException
50-
* @throws ParseException
5150
*/
52-
public static NgxConfig read(String path) throws IOException, ParseException {
51+
public static NgxConfig read(String path) throws IOException {
5352
FileInputStream input = new FileInputStream(path);
5453
return read(input);
5554
}

src/test/java/com/github/odiszapc/nginxparser/TestUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static InputStream getStream(String path) {
3636
}
3737

3838
public static String dump(String path) throws Exception {
39-
NgxConfig conf = TestUtils.parseJavaCC(path);
39+
NgxConfig conf = TestUtils.parseAntlr(path);
4040
NgxDumper dumper = new NgxDumper(conf);
4141
return dumper.dump();
4242
}

0 commit comments

Comments
 (0)