Skip to content

Commit

Permalink
Make constructors public
Browse files Browse the repository at this point in the history
  • Loading branch information
codelion committed Mar 26, 2018
1 parent 4283e9d commit 954dd5f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
10 changes: 2 additions & 8 deletions gramtest.iml
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="false">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/target/generated-sources/antlr4" isTestSource="false" generated="true" />
<excludeFolder url="file://$MODULE_DIR$/target/archive-tmp" />
<excludeFolder url="file://$MODULE_DIR$/target/classes" />
<excludeFolder url="file://$MODULE_DIR$/target/maven-archiver" />
<excludeFolder url="file://$MODULE_DIR$/target/maven-status" />
<excludeFolder url="file://$MODULE_DIR$/target/surefire" />
<excludeFolder url="file://$MODULE_DIR$/target/surefire-reports" />
<excludeFolder url="file://$MODULE_DIR$/target/test-classes" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.sourceclear</groupId>
<artifactId>gramtest</artifactId>
<version>0.2.2</version>
<version>0.2.3</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/sourceclear/gramtest/GeneratorVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ public class GeneratorVisitor extends bnfBaseVisitor {

/////////////////////////////// Constructors \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

GeneratorVisitor() {
public GeneratorVisitor() {
}

GeneratorVisitor(int num, int depth, int min, int max, boolean useMinimalGenerator) {
public GeneratorVisitor(int num, int depth, int min, int max, boolean useMinimalGenerator) {
this.maxNum = num;
this.maxDepth = depth;
this.minSize = min;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/sourceclear/gramtest/TestRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ public class TestRunner implements Runnable {
private int min = 1;
private BlockingQueue<String> queue;

TestRunner(InputStream bnfGrammar, BlockingQueue<String> queue) throws IOException {
public TestRunner(InputStream bnfGrammar, BlockingQueue<String> queue) throws IOException {
Lexer lexer = new bnfLexer(new ANTLRInputStream(bnfGrammar));
CommonTokenStream tokens = new CommonTokenStream(lexer);
bnfParser grammarparser = new bnfParser(tokens);
this.tree = grammarparser.rulelist();
this.queue = queue;
}

TestRunner(InputStream bnfGrammar, BlockingQueue<String> queue, int depth, int min, int max) throws IOException {
public TestRunner(InputStream bnfGrammar, BlockingQueue<String> queue, int depth, int min, int max) throws IOException {
Lexer lexer = new bnfLexer(new ANTLRInputStream(bnfGrammar));
CommonTokenStream tokens = new CommonTokenStream(lexer);
bnfParser grammarparser = new bnfParser(tokens);
Expand Down

0 comments on commit 954dd5f

Please sign in to comment.