From 1951c685896172067e185ce9b10e9cae11651c17 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Fri, 20 Oct 2023 11:39:30 +0200 Subject: [PATCH] [java] Revert unrelated change in LawOfDemeter.xml --- .../java/rule/design/xml/LawOfDemeter.xml | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/design/xml/LawOfDemeter.xml b/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/design/xml/LawOfDemeter.xml index 6c6eceac33..c977a3e509 100644 --- a/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/design/xml/LawOfDemeter.xml +++ b/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/design/xml/LawOfDemeter.xml @@ -1222,42 +1222,6 @@ class LawOfDemeterFields { return null; } } -]]> - - - - sadasd conditional self assignment of fields - 2 - 12,18 - { - TreeNode root = (TreeNode) tree.getModel().getRoot(); // NOT report - visitAll(tree, new TreePath(root), true); - })); - box.add(new JButton(new AbstractAction("collapse") { - @Override - public void actionPerformed(ActionEvent e) { - TreeNode root = (TreeNode) tree.getModel().getRoot(); // report LawOfDemeter(method chain calls) - visitAll(tree, new TreePath(root), false); - } - })); - box.add(Box.createVerticalGlue()); - JPanel p = new JPanel(new BorderLayout()); - p.add(box, BorderLayout.EAST); - p.add(new JScrollPane(tree)); - return p; - } -} ]]>