Skip to content
Snippets Groups Projects
Commit bfa206ad authored by Johannes Mey's avatar Johannes Mey
Browse files

fix bug that prevented overriding isGrammarFile()

parent 12668fd8
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ public abstract class RelAstProcessor extends AbstractCompiler { ...@@ -25,7 +25,7 @@ public abstract class RelAstProcessor extends AbstractCompiler {
super(name, jastAddCompliant); super(name, jastAddCompliant);
} }
protected static boolean isGrammarFile(String fileName) { protected boolean isGrammarFile(String fileName) {
String extension = fileName.subSequence(fileName.lastIndexOf('.'), fileName.length()).toString(); String extension = fileName.subSequence(fileName.lastIndexOf('.'), fileName.length()).toString();
return extension.equals(".relast") || extension.equals(".ast"); return extension.equals(".relast") || extension.equals(".ast");
} }
......
...@@ -22,7 +22,8 @@ public class RelastSourceToSourceCompiler extends RelAstProcessor { ...@@ -22,7 +22,8 @@ public class RelastSourceToSourceCompiler extends RelAstProcessor {
} }
} }
protected static boolean isGrammarFile(String fileName) { @Override
protected boolean isGrammarFile(String fileName) {
String extension = fileName.subSequence(fileName.lastIndexOf("."), fileName.length()).toString(); String extension = fileName.subSequence(fileName.lastIndexOf("."), fileName.length()).toString();
return extension.equals(".relast") || extension.equals(".ast"); return extension.equals(".relast") || extension.equals(".ast");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment