mirror of
https://github.com/java-diff-utils/java-diff-utils.git
synced 2026-03-13 10:11:17 +08:00
This commit is contained in:
@@ -133,6 +133,9 @@ public final class DiffUtils {
|
||||
}
|
||||
|
||||
private static List<String> compressLines(List<String> lines, String delimiter) {
|
||||
if (lines.isEmpty()) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return Collections.singletonList(lines.stream().collect(joining(delimiter)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user