예제 #1
0
 private EditList diff(RawText a, RawText b) {
   return diffAlgorithm.diff(comparator, a, b);
 }
예제 #2
0
파일: Diff.java 프로젝트: gpfeifer/jrcs
 /**
  * compute the difference between the original and a revision.
  *
  * @param rev the revision to compare with the original.
  * @return a Revision describing the differences
  */
 public Revision diff(Object[] rev) throws DifferentiationFailedException {
   if (orig.length == 0 && rev.length == 0) return new Revision();
   else return algorithm.diff(orig, rev);
 }