Clover coverage report - PMD - 3.9 Coverage timestamp: Tue Dec 19 2006 09:38:44 EST FRAMES NO FRAMES |
file stats: | LOC: | 29 |  | Methods: | 3
| NCLOC: | 20 |  | Classes: | 1
Source file | Conditionals | Statements | Methods | TOTAL
ViolationNode.java | 50% | 83.3% | 100% | 81.8% |

1 |  | package net.sourceforge.pmd.dfa.report;
2 |  |
3 |  | import net.sourceforge.pmd.IRuleViolation;
4 |  |
5 |  | public class ViolationNode extends AbstractReportNode {
6 |  |
7 |  | private IRuleViolation ruleViolation;
8 |  |
9 | 2878 | public ViolationNode(IRuleViolation violation) {
10 | 2878 | this.ruleViolation = violation;
11 |  | }
12 |  |
13 | 158910 | public IRuleViolation getRuleViolation() {
14 | 158910 | return ruleViolation;
15 |  | }
16 |  |
17 | 52966 | public boolean equalsNode(AbstractReportNode arg0) {
18 | 52966 | if (!(arg0 instanceof ViolationNode)) {
19 | 0 | return false;
20 |  | }
21 |  |
22 | 52966 | IRuleViolation rv = ((ViolationNode) arg0).getRuleViolation();
23 |  |
24 | 52966 | return rv.getFilename().equals(getRuleViolation().getFilename()) &&
25 |  | rv.getBeginLine() == getRuleViolation().getBeginLine() &&
26 |  | rv.getVariableName().equals(getRuleViolation().getVariableName());
27 |  | }
28 |  |
29 |  | }