Skip to content

Commit ca6a54c

Browse files
committed
some cleanup
1 parent 55646e9 commit ca6a54c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/main/java/difflib/DiffUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* @version 0.4.1
3030
* @param T The type of the compared elements in the 'lines'.
3131
*/
32-
public class DiffUtils {
32+
public final class DiffUtils {
3333

3434
private static Pattern unifiedDiffChunkRe = Pattern
3535
.compile("^@@\\s+-(?:(\\d+)(?:,(\\d+))?)\\s+\\+(?:(\\d+)(?:,(\\d+))?)\\s+@@$");
@@ -391,4 +391,6 @@ private static List<String> getDeltaText(Delta<String> delta) {
391391
return buffer;
392392
}
393393

394+
private DiffUtils() {
395+
}
394396
}

src/main/java/difflib/StringUtills.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import java.util.LinkedList;
2020
import java.util.List;
2121

22-
public class StringUtills {
22+
public final class StringUtills {
2323

2424
public static <T> String join(final Iterable<T> objs, final String delimiter) {
2525
Iterator<T> iter = objs.iterator();
@@ -93,4 +93,7 @@ public static String wrapText(String line, int columnWidth) {
9393

9494
return line;
9595
}
96+
97+
private StringUtills() {
98+
}
9699
}

0 commit comments

Comments
 (0)