1313 * See the License for the specific language governing permissions and
1414 * limitations under the License.
1515 */
16- package com.github .difflib
16+ package dev.gitlive .difflib
1717
18- import com.github .difflib.algorithm.DiffAlgorithmI
19- import com.github .difflib.algorithm.DiffAlgorithmListener
20- import com.github .difflib.algorithm.DiffException
21- import com.github .difflib.algorithm.myers.MyersDiff
22- import com.github .difflib.patch.AbstractDelta
23- import com.github .difflib.patch.Patch
24- import com.github .difflib.patch.PatchFailedException
18+ import dev.gitlive .difflib.algorithm.DiffAlgorithmI
19+ import dev.gitlive .difflib.algorithm.DiffAlgorithmListener
20+ import dev.gitlive .difflib.algorithm.DiffException
21+ import dev.gitlive .difflib.algorithm.myers.MyersDiff
22+ import dev.gitlive .difflib.patch.AbstractDelta
23+ import dev.gitlive .difflib.patch.Patch
24+ import dev.gitlive .difflib.patch.PatchFailedException
2525
2626internal typealias Predicate <T > = (T ) -> Boolean
2727internal typealias BiPredicate <T ,R > = (T , R ) -> Boolean
@@ -42,16 +42,16 @@ object DiffUtils {
4242 * @param revised The revised text. Must not be `null`.
4343 * @param progress progress listener
4444 * @return The patch describing the difference between the original and revised sequences. Never `null`.
45- * @throws com.github .difflib.algorithm.DiffException
45+ * @throws dev.gitlive .difflib.algorithm.DiffException
4646 */
4747// @Throws(DiffException::class)
4848 fun <T > diff (original : List <T >, revised : List <T >, progress : DiffAlgorithmListener ): Patch <T > {
49- return DiffUtils . diff(original, revised, MyersDiff (), progress)
49+ return diff(original, revised, MyersDiff (), progress)
5050 }
5151
5252// @Throws(DiffException::class)
5353 fun <T > diff (original : List <T >, revised : List <T >): Patch <T > {
54- return DiffUtils . diff(original, revised, MyersDiff (), null )
54+ return diff(original, revised, MyersDiff (), null )
5555 }
5656
5757 /* *
@@ -60,7 +60,7 @@ object DiffUtils {
6060// @Throws(DiffException::class)
6161 fun diff (sourceText : String , targetText : String ,
6262 progress : DiffAlgorithmListener ): Patch <String > {
63- return DiffUtils . diff(sourceText.lines(), targetText.lines(), progress)
63+ return diff(sourceText.lines(), targetText.lines(), progress)
6464 }
6565
6666 /* *
@@ -77,9 +77,9 @@ object DiffUtils {
7777 fun <T > diff (source : List <T >, target : List <T >,
7878 equalizer : BiPredicate <T , T >? ): Patch <T > {
7979 return if (equalizer != null ) {
80- DiffUtils . diff(source, target,
80+ diff(source, target,
8181 MyersDiff (equalizer))
82- } else DiffUtils . diff(source, target, MyersDiff ())
82+ } else diff(source, target, MyersDiff ())
8383 }
8484
8585 /* *
@@ -129,7 +129,7 @@ object DiffUtils {
129129 for (character in revised) {
130130 revList.add(character.toString())
131131 }
132- val patch = DiffUtils . diff(origList, revList)
132+ val patch = diff(origList, revList)
133133 for (delta in patch.getDeltas()) {
134134 delta.source.lines = compressLines(delta.source.lines!! , " " )
135135 delta.target.lines = compressLines(delta.target.lines!! , " " )
0 commit comments