Commit bfa206ad authored by Johannes Mey's avatar Johannes Mey
Browse files

fix bug that prevented overriding isGrammarFile()

parent 12668fd8
......@@ -25,7 +25,7 @@ public abstract class RelAstProcessor extends AbstractCompiler {
super(name, jastAddCompliant);
}
protected static boolean isGrammarFile(String fileName) {
protected boolean isGrammarFile(String fileName) {
String extension = fileName.subSequence(fileName.lastIndexOf('.'), fileName.length()).toString();
return extension.equals(".relast") || extension.equals(".ast");
}
......
......@@ -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();
return extension.equals(".relast") || extension.equals(".ast");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment