コード例 #1
0
  public static void verify(@NotNull DiffIterable iterable) {
    if (!isVerifyEnabled()) return;

    verify(iterable.iterateChanges());
    verify(iterable.iterateUnchanged());

    verifyFullCover(iterable);
  }
コード例 #2
0
 @NotNull
 public static List<DiffFragment> convertIntoFragments(@NotNull DiffIterable changes) {
   final List<DiffFragment> fragments = new ArrayList<DiffFragment>();
   for (Range ch : changes.iterateChanges()) {
     fragments.add(new DiffFragmentImpl(ch.start1, ch.end1, ch.start2, ch.end2));
   }
   return fragments;
 }