diff --git a/src/main/java/difflib/algorithm/myers/DiffNode.java b/src/main/java/difflib/algorithm/myers/DiffNode.java
index 214c032..14fe1ba 100644
--- a/src/main/java/difflib/algorithm/myers/DiffNode.java
+++ b/src/main/java/difflib/algorithm/myers/DiffNode.java
@@ -19,19 +19,6 @@ limitations under the License.
*/
package difflib.algorithm.myers;
-/**
- *
- * Title:
- *
- * Description:
- *
- * Copyright: Copyright (c) 2002
- *
- * Company:
- *
- * @author not attributable
- * @version 1.0
- */
/**
* A diffnode in a diffpath.
*
diff --git a/src/main/java/difflib/algorithm/myers/MyersDiff.java b/src/main/java/difflib/algorithm/myers/MyersDiff.java
index 7f07ab2..a893b6d 100644
--- a/src/main/java/difflib/algorithm/myers/MyersDiff.java
+++ b/src/main/java/difflib/algorithm/myers/MyersDiff.java
@@ -45,7 +45,7 @@ import java.util.List;
* @author Juanco Anez
* @param T The type of the compared elements in the 'lines'.
*/
-public class MyersDiff implements DiffAlgorithm {
+public final class MyersDiff implements DiffAlgorithm {
/**
* Default equalizer.
@@ -117,7 +117,7 @@ public class MyersDiff implements DiffAlgorithm {
* @return A minimum {@link PathNode Path} accross the differences graph.
* @throws DifferentiationFailedException if a diff path could not be found.
*/
- public PathNode buildPath(final List orig, final List rev)
+ private PathNode buildPath(final List orig, final List rev)
throws DifferentiationFailedException {
if (orig == null) {
throw new IllegalArgumentException("original sequence is null");
@@ -192,7 +192,7 @@ public class MyersDiff implements DiffAlgorithm {
* @throws DifferentiationFailedException if a {@link Patch} could not be built from the given
* path.
*/
- public Patch buildRevision(PathNode path, List orig, List rev) {
+ private Patch buildRevision(PathNode path, List orig, List rev) {
if (path == null) {
throw new IllegalArgumentException("path is null");
}
diff --git a/src/main/java/difflib/algorithm/myers/PathNode.java b/src/main/java/difflib/algorithm/myers/PathNode.java
index 4a0f43f..de1a2dd 100644
--- a/src/main/java/difflib/algorithm/myers/PathNode.java
+++ b/src/main/java/difflib/algorithm/myers/PathNode.java
@@ -96,7 +96,7 @@ public abstract class PathNode {
*/
@Override
public String toString() {
- StringBuffer buf = new StringBuffer("[");
+ StringBuilder buf = new StringBuilder("[");
PathNode node = this;
while (node != null) {
buf.append("(");