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);
|
throw new IllegalArgumentException("Could not read path: "+path, ioe);
|
||||||
}
|
}
|
||||||
XPathLexer lexer = new XPathLexer(in) {
|
XPathLexer lexer = new XPathLexer(in) {
|
||||||
|
@Override
|
||||||
public void recover(LexerNoViableAltException e) { throw e; }
|
public void recover(LexerNoViableAltException e) { throw e; }
|
||||||
};
|
};
|
||||||
lexer.removeErrorListeners();
|
lexer.removeErrorListeners();
|
||||||
|
|
|
@ -220,14 +220,17 @@ public class JavaScriptTarget extends Target {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean wantsBaseListener() {
|
public boolean wantsBaseListener() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean wantsBaseVisitor() {
|
public boolean wantsBaseVisitor() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean supportsOverloadedMethods() {
|
public boolean supportsOverloadedMethods() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -393,6 +393,7 @@ public class TreeViewer extends JComponent {
|
||||||
|
|
||||||
// make viz
|
// make viz
|
||||||
WindowListener exitListener = new WindowAdapter() {
|
WindowListener exitListener = new WindowAdapter() {
|
||||||
|
@Override
|
||||||
public void windowClosing(WindowEvent e) {
|
public void windowClosing(WindowEvent e) {
|
||||||
prefs.putInt(DIALOG_WIDTH_PREFS_KEY, (int) dialog.getSize().getWidth());
|
prefs.putInt(DIALOG_WIDTH_PREFS_KEY, (int) dialog.getSize().getWidth());
|
||||||
prefs.putInt(DIALOG_HEIGHT_PREFS_KEY, (int) dialog.getSize().getHeight());
|
prefs.putInt(DIALOG_HEIGHT_PREFS_KEY, (int) dialog.getSize().getHeight());
|
||||||
|
|
Loading…
Reference in New Issue