Checkstyle + pmd
This commit is contained in:
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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() {
|
||||
|
Reference in New Issue
Block a user