public LinkedList<Patch> patch_make(String text1,String text2){
  if (text1 == null || text2 == null) {
    throw new IllegalArgumentException("Null inputs. (patch_make)");
  }
  LinkedList<Diff> diffs=diff_main(text1,text2,true);
  if (diffs.size() > 2) {
    diff_cleanupSemantic(diffs);
    diff_cleanupEfficiency(diffs);
  }
  return patch_make(text1,diffs);
}

public LinkedList < Patch > patch_make ( String text1 , String text2 ) { if ( text1 == null || text2 == null ) { throw new IllegalArgumentException ( "Null inputs. (patch_make)" ) ; } LinkedList < Diff > diffs = diff_main ( text1 , text2 , true ) ; if ( diffs . size ( ) > 2 ) { diff_cleanupSemantic ( diffs ) ; diff_cleanupEfficiency ( diffs ) ; } return patch_make ( text1 , diffs ) ; }
compute a list of patches to turn text1 into text2 . a set of diffs will be computed .
