java-diff-utils
java-diff-utils copied to clipboard
Library for performing the comparison operations between texts
Bumps [junit](https://github.com/junit-team/junit4) from 4.11 to 4.13.1. Release notes Sourced from junit's releases. JUnit 4.13.1 Please refer to the release notes for details. JUnit 4.13 Please refer to the release notes...
``` Try these: Lst original = Arrays.asList("line1", "line2", "line3"); List revised = Arrays.asList("line1", "line2-2", "line4"); Patch patch = DiffUtils.diff(original, revised); position 1 shows as changed, but that is the only...
``` If the line numbers given in a unified diff do not match, the patch command line program will perform a fuzzy patch and try to find the lines givn...
``` The two methods: public abstract void applyTo(List target) public abstract void restore(List target); Take List as a param, whereas most other things use List. the former doesn't allow lists...
``` While using this diff lib on a very large collection of files, I encountered a pair of files that caused the diff algorithm to hang. I attach this pathological...
``` What steps will reproduce the problem? Run sample code (BasicJavaApp_Task1) of http://code.google.com/p/java-diff-utils/wiki/SampleUsage What is the expected output? The position should start from 1. What do you see instead? The...
``` What steps will reproduce the problem? 1. see attached test.java 2. enable 1 set of add statements and disable the other, run it 3. enable the other set of...
``` What steps will reproduce the problem? 1. Create patch: diff -U 0 uc_original.txt uc_insert_revised.txt > uc_insert_patch.txt 2. Copy *.txt files to test/mocks and EmptyContextUnifiedDiffTest.java to diffutils/ 3. Run JUnit...
``` What steps will reproduce the problem? This JUnit test fails on the 2nd assert: public final void testGenerateDiffRowsListOfStringListOfStringChange1() { DiffRowGenerator generator = new DiffRowGenerator.Builder().showInlineDiffs(true).ignoreWhiteSpaces(true) .columnWidth(100).build(); List revised = new...
``` This would be useful because sometimes one wishes to replace the baked in equals that might be part of each element. This sort of thing makes it easy to...