Checkstyle + pmd

This commit is contained in:
Clément Fournier
2018-03-30 12:51:28 +02:00
parent 8c2cc4f792
commit 930bdd235c
3 changed files with 2 additions and 9 deletions

View File

@ -74,7 +74,7 @@ public class NodeInfoPanelController implements Initializable {
.filterMap(o -> o instanceof NameDeclaration, o -> (NameDeclaration) o)
.subscribe(parent::onNameDeclarationSelected);
scopeHierarchyTreeView.setCellFactory(view -> new ScopeHierarchyTreeCell(parent));
scopeHierarchyTreeView.setCellFactory(view -> new ScopeHierarchyTreeCell());
}

View File

@ -10,7 +10,6 @@ import net.sourceforge.pmd.lang.java.symboltable.MethodNameDeclaration;
import net.sourceforge.pmd.lang.java.symboltable.VariableNameDeclaration;
import net.sourceforge.pmd.lang.symboltable.NameDeclaration;
import net.sourceforge.pmd.lang.symboltable.Scope;
import net.sourceforge.pmd.util.fxdesigner.MainDesignerController;
import javafx.scene.control.TreeCell;
@ -23,13 +22,6 @@ import javafx.scene.control.TreeCell;
*/
public class ScopeHierarchyTreeCell extends TreeCell<Object> {
private final MainDesignerController controller;
public ScopeHierarchyTreeCell(MainDesignerController controller) {
this.controller = controller;
}
@Override
protected void updateItem(Object item, boolean empty) {
super.updateItem(item, empty);

View File

@ -50,6 +50,7 @@ public class TreeViewWrapper<T> {
// we can't use wrapped.getSkin() because it may be null.
// we don't care about the specific instance, we just want the class
@SuppressWarnings("PMD.UselessOverridingMethod")
Skin<?> dftSkin = new TreeView<Object>() {
@Override
protected Skin<?> createDefaultSkin() {