The following document contains the results of PMD's CPD 5.1.2.
File | Line |
---|---|
org/vaadin/aceeditor/ServerSideDocDiff.java | 62 |
org/vaadin/aceeditor/client/ClientSideDocDiff.java | 47 |
return new ServerSideDocDiff(patches); } // XXX Unnecessary copy-pasting private static SetDiff<MarkerAnnotation, TransportMarkerAnnotation> diffMA( Set<MarkerAnnotation> anns1, Set<MarkerAnnotation> anns2) { if (anns2 == null && anns1 != null) { return null; } if (anns1==null) { anns1 = Collections.emptySet(); } if (anns2==null) { anns2 = Collections.emptySet(); } return new SetDiff.Differ<MarkerAnnotation,TransportMarkerAnnotation>().diff(anns1, anns2); } // XXX Unnecessary copy-pasting private static SetDiff<RowAnnotation, TransportRowAnnotation> diffRA( Set<RowAnnotation> anns1, Set<RowAnnotation> anns2) { if (anns2 == null && anns1 != null) { return null; } if (anns1==null) { anns1 = Collections.emptySet(); } if (anns2==null) { anns2 = Collections.emptySet(); } return new SetDiff.Differ<RowAnnotation,TransportRowAnnotation>().diff(anns1, anns2); } |