diff --git a/README.md b/README.md index 57df06e..3b139f3 100644 --- a/README.md +++ b/README.md @@ -79,3 +79,9 @@ This library implements Myers' diff algorithm, but it is modular so it is easy t - add Guava to dependency - let user uses other string to represent line which does not exist - implement event based parser like SAX (in difflib.event package) + +### License + +The license of the library is Apache-2.0. +Until version 1.3.1, the license was Apache-1.1. +The files in the directory `java-diff-utils-lib/src/main/java/difflib/myers` are subject to LGPL-2.1. diff --git a/java-diff-utils-lib/src/main/java/difflib/myers/DiffNode.java b/java-diff-utils-lib/src/main/java/difflib/myers/DiffNode.java index a2fb071..477689a 100644 --- a/java-diff-utils-lib/src/main/java/difflib/myers/DiffNode.java +++ b/java-diff-utils-lib/src/main/java/difflib/myers/DiffNode.java @@ -34,8 +34,8 @@ public final class DiffNode extends PathNode { * will be followed using {@link PathNode#previousSnake} * until a non-diff node is found. * - * @param the position in the original sequence - * @param the position in the revised sequence + * @param i position in the original sequence + * @param j position in the revised sequence * @param prev the previous node in the path. */ public DiffNode(int i, int j, PathNode prev) { diff --git a/java-diff-utils-lib/src/main/java/difflib/myers/MyersDiff.java b/java-diff-utils-lib/src/main/java/difflib/myers/MyersDiff.java index 9cccc85..47f8b89 100644 --- a/java-diff-utils-lib/src/main/java/difflib/myers/MyersDiff.java +++ b/java-diff-utils-lib/src/main/java/difflib/myers/MyersDiff.java @@ -72,7 +72,7 @@ * http://www.cs.arizona.edu/people/gene/PAPERS/diff.ps

* * @author Juanco Anez - * @param T The type of the compared elements in the 'lines'. + * @param The type of the compared elements in the 'lines'. */ public class MyersDiff implements DiffAlgorithm { /** Default equalizer. */ @@ -309,4 +309,4 @@ public static T[] copyOfRange2(U[] original, int from, int to, public Equalizer getEqualizer() { return equalizer; } -} \ No newline at end of file +} diff --git a/java-diff-utils-lib/src/main/java/difflib/myers/Snake.java b/java-diff-utils-lib/src/main/java/difflib/myers/Snake.java index 452829b..ebdc2ce 100644 --- a/java-diff-utils-lib/src/main/java/difflib/myers/Snake.java +++ b/java-diff-utils-lib/src/main/java/difflib/myers/Snake.java @@ -74,8 +74,8 @@ public final class Snake extends PathNode { /** * Constructs a snake node. * - * @param the position in the original sequence - * @param the position in the revised sequence + * @param i position in the original sequence + * @param j position in the revised sequence * @param prev the previous node in the path. */ public Snake(int i, int j, PathNode prev) { diff --git a/java-diff-utils-lib/src/main/java/difflib/myers/package.html b/java-diff-utils-lib/src/main/java/difflib/myers/package.html index 3ccec66..5a2547c 100644 --- a/java-diff-utils-lib/src/main/java/difflib/myers/package.html +++ b/java-diff-utils-lib/src/main/java/difflib/myers/package.html @@ -1,32 +1,10 @@ - - - + + - - + difflib.myers -

+

The {@link difflib.myers diff.myers} package implements Gene Myers' @@ -37,6 +15,11 @@ consumes considerably more memory than SimpleDiff, so its not suitable for very large files.

-@author Juanco Anez +

+ @author Juanco Anez +

+

+ In an email on 2012-12-17, Juancarlo AƱez clearly stated that the license of the files in this directory is LGPL-2.1. +