Unused method parameters should be removed. Issue #46
This commit is contained in:
parent
57b908199d
commit
bcaa9d81a7
|
|
@ -69,7 +69,7 @@ public final class Main {
|
|||
final JFrame testFrame = new JFrame("CheckStyle");
|
||||
final ParseTreeInfoPanel panel = new ParseTreeInfoPanel();
|
||||
testFrame.getContentPane().add(panel);
|
||||
panel.openAst(ast, testFrame);
|
||||
panel.openAst(ast);
|
||||
testFrame.setSize(1500, 800);
|
||||
testFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
|
||||
testFrame.setVisible(true);
|
||||
|
|
|
|||
|
|
@ -41,13 +41,13 @@ import javax.swing.JTextArea;
|
|||
import javax.swing.SwingUtilities;
|
||||
import javax.swing.filechooser.FileFilter;
|
||||
|
||||
import antlr.ANTLRException;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.TreeWalker;
|
||||
import com.puppycrawl.tools.checkstyle.api.DetailAST;
|
||||
import com.puppycrawl.tools.checkstyle.api.FileContents;
|
||||
import com.puppycrawl.tools.checkstyle.api.FileText;
|
||||
|
||||
import antlr.ANTLRException;
|
||||
|
||||
/**
|
||||
* Displays information about a parse tree.
|
||||
* The user can change the file that is parsed and displayed
|
||||
|
|
@ -106,7 +106,7 @@ public class ParseTreeInfoPanel extends JPanel {
|
|||
|
||||
}
|
||||
|
||||
public void openAst(DetailAST parseTree, final Component parent) {
|
||||
public void openAst(DetailAST parseTree) {
|
||||
parseTreeModel.setParseTree(parseTree);
|
||||
reloadAction.setEnabled(true);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue