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; - } -} ]]>