Skip to content

Commit

Permalink
Add PMD suppression.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Apr 24, 2024
1 parent 5c653e5 commit 7496ccb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/edu/hm/hafner/echarts/TreeNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public List<TreeNode> getChildren() {
* children are now the children of the current node. This is repeated as long as there are nodes with only one
* child (package nodes at the top of the hierarchy).
*/
@SuppressWarnings("PMD.UnusedAssignment") // false positive https://github.com/pmd/pmd/issues/4960
public void collapsePackage() {
while (getChildren().size() == 1) {
TreeNode singleChild = getChildrenMap().values().iterator().next();
Expand Down

0 comments on commit 7496ccb

Please sign in to comment.