Unused method parameters should be removed. Issue #46

This commit is contained in:
Ilja Dubinin 2015-08-19 23:50:14 +01:00 committed by Roman Ivanov
parent 57b908199d
commit bcaa9d81a7
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);