public LinkedList < Patch > patch_make ( String text1 , String text2 ) { if ( text1 == null || text2 == null ) { throw new IllegalArgumentException ( "Null inputs. (patch_make)" ) ; } // No diffs provided, compute our own. 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 .