Registry / utility / java-diff-utils

java-diff-utils

JSON →
library2.2.0javamavenunverified

Library for computing diffs, applying patches, and generating side-by-side views in Java.

<dependency> <groupId>io.github.java-diff-utils</groupId> <artifactId>java-diff-utils</artifactId> <version>2.2.0</version> </dependency>
INSTALL
IMPORT
SIG · JAVA-DIFF-UTILS
J
java-diff-utils
utilityjavav2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DiffUtils
com.github.difflib.DiffUtils

Computes a diff between two lists of strings and prints the number of changes.

import com.github.difflib.DiffUtils; import com.github.difflib.patch.Patch; import java.util.Arrays; import java.util.List; public class Example { public static void main(String[] args) { List<String> original = Arrays.asList("line1", "line2"); List<String> revised = Arrays.asList("line1", "line3"); Patch<String> patch = DiffUtils.diff(original, revised); System.out.println("Patch size: " + patch.getDeltas().size()); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.2.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
java-diff-utils — mvn dependency:get java-diff-utils · libregistry