forked from jasder/antlr
add @Override to hush warnings. Manually did some of https://github.com/antlr/antlr4/pull/1066
This commit is contained in:
parent
9a0a54f0e6
commit
3506dcef1d
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue