add @Override to hush warnings. Manually did some of https://github.com/antlr/antlr4/pull/1066

This commit is contained in:
parrt 2016-11-25 12:52:44 -08:00
parent 9a0a54f0e6
commit 3506dcef1d
3 changed files with 5 additions and 0 deletions

View File

@ -85,6 +85,7 @@ public class XPath {
throw new IllegalArgumentException("Could not read path: "+path, ioe);
}
XPathLexer lexer = new XPathLexer(in) {
@Override
public void recover(LexerNoViableAltException e) { throw e; }
};
lexer.removeErrorListeners();

View File

@ -220,14 +220,17 @@ public class JavaScriptTarget extends Target {
}
@Override
public boolean wantsBaseListener() {
return false;
}
@Override
public boolean wantsBaseVisitor() {
return false;
}
@Override
public boolean supportsOverloadedMethods() {
return false;
}

View File

@ -393,6 +393,7 @@ public class TreeViewer extends JComponent {
// make viz
WindowListener exitListener = new WindowAdapter() {
@Override
public void windowClosing(WindowEvent e) {
prefs.putInt(DIALOG_WIDTH_PREFS_KEY, (int) dialog.getSize().getWidth());
prefs.putInt(DIALOG_HEIGHT_PREFS_KEY, (int) dialog.getSize().getHeight());