|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| MatchLengthComparator.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 1 | package net.sourceforge.pmd.cpd; | |
| 2 | ||
| 3 | import java.util.Comparator; | |
| 4 | ||
| 5 | public class MatchLengthComparator implements Comparator { | |
| 6 | 0 | public int compare(Object o1, Object o2) { |
| 7 | 0 | Match m1 = (Match) o1; |
| 8 | 0 | Match m2 = (Match) o2; |
| 9 | 0 | return m2.getLineCount() - m1.getLineCount(); |
| 10 | } | |
| 11 | } |
|
||||||||||