Affects PMD Version: 6.0.1
Rule:
category/java/bestpractices.xml/UnusedPrivateField
Description:
Fields, that are annotated with @FXML
should not be considered by the rule UnusedPrivateField
. Removing such fields could break the JavaFX application, since the FXML and Java code need
to be in sync.
Maybe we can add a property with a list of annotations (class types), that - if present - shutdown this rule.
Code Sample demonstrating the issue:
public class NodeInfoPanelController {
@FXML
private TabPane nodeInfoTabPane;
}
Running PMD through: [Maven]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4