Work around PMD issue #1076

Report.treeIterator() does not return all violations so it was replaced
with Report.iterator() which does return all violations.