Issue #1555: Remove unused parameters

Fixes some `UnusedParameters` inspection violations.

Description:
>This inspection reports parameters that are not used by their methods and all method implementations/overriders.
This commit is contained in:
Michal Kordas 2015-08-27 00:01:10 +02:00 committed by Roman Ivanov
parent 502404055f
commit b76b91e67a
3 changed files with 3 additions and 4 deletions

View File

@ -211,7 +211,7 @@ public abstract class AbstractTreeTableModel implements TreeTableModel {
* and keyboard events in the Tree column to the underlying JTree.
*/
@Override
public boolean isCellEditable(Object node, int column) {
public boolean isCellEditable(int column) {
return getColumnClass(column) == TreeTableModel.class;
}
}

View File

@ -66,9 +66,8 @@ public interface TreeTableModel extends TreeModel {
* Indicates whether the the value for node {@code node},
* at column number {@code column} is editable.
*
* @param node the node.
* @param column the column number
* @return true if editable
*/
boolean isCellEditable(Object node, int column);
boolean isCellEditable(int column);
}

View File

@ -95,7 +95,7 @@ public class TreeTableModelAdapter extends AbstractTableModel {
@Override
public boolean isCellEditable(int row, int column) {
return treeTableModel.isCellEditable(nodeForRow(row), column);
return treeTableModel.isCellEditable(column);
}
/**