You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
[](https://github.com/java-diff-utils/java-diff-utils/actions?query=workflow%3A%22Java+CI+with+Maven%22)
7
+
[](https://github.com/java-diff-utils/java-diff-utils/actions?query=workflow%3A%22Java+CI+with+Maven%22)
Diff Utils library is anOpenSourcelibrary for performing the comparison operations between texts: computing diffs, applying patches, generating unified diffs or parsing them, generating diff output for easy future displaying (like side-by-side view) and so on.
15
+
Diff Utils library is anopen sourcelibrary for performing comparison operations between texts: computing diffs, applying patches, generating unified diffs or parsing them, generating diff output for easy future displaying (like side-by-side view) and so on.
16
16
17
-
Mainreason to build this library was the lack of easy-to-use libraries with all the usual stuff you need while working with diff files. Originally it was inspired by JRCS library andit's nice design of diff module.
17
+
The mainreason to build this library was the lack of easy-to-use libraries with all the usual stuff you need while working with diff files. Originally it was inspired by JRCS library andits nice design of diff module.
18
18
19
19
**This is originally a fork of java-diff-utils from Google Code Archive.**
20
20
21
21
##GPG Signature Validation
22
22
23
-
The gpg singing key in[KEYS] is used for thisprojects artifacts.
23
+
The gpg singing key in[KEYS] is used for thisproject's artifacts.
24
24
25
25
##API
26
26
27
-
Javadocs of the actual release version:[JavaDocs java-diff-utils](https://java-diff-utils.github.io/java-diff-utils/4.10/docs/apidocs/)
27
+
Javadocs of the actual release version:[Javadocs java-diff-utils](https://java-diff-utils.github.io/java-diff-utils/4.10/docs/apidocs/)
28
28
29
29
##Examples
30
30
31
-
Look[here](https://github.com/java-diff-utils/java-diff-utils/wiki) to find more helpfulinformations and examples.
31
+
Look[here](https://github.com/java-diff-utils/java-diff-utils/wiki) to find more helpfulinformation and examples.
32
32
33
-
These two outputs are generated usingthisjava-diff-utils. The source code can also be found at the*Examples* page:
33
+
These two outputs are generated using java-diff-utils. The source code can also be found at the*Examples* page:
34
34
35
35
**Producing a one liner including all difference information.**
Arrays.asList("This is a testsenctence.","This is the second line.","And here is the finish."),
67
+
Arrays.asList("This is a testsentence.","This is the second line.","And here is the finish."),
68
68
Arrays.asList("This is a test for diffutils.","This is the second line."));
69
-
69
+
70
70
System.out.println("|original|new|");
71
71
System.out.println("|--------|---|");
72
72
for (DiffRow row: rows) {
@@ -76,14 +76,14 @@ for (DiffRow row : rows) {
76
76
77
77
|original|new|
78
78
|--------|---|
79
-
|This is a test~senctence~.|This is a test**for diffutils**.|
79
+
|This is a test~sentence~.|This is a test**for diffutils**.|
80
80
|This is the second line.|This is the second line.|
81
81
|~And here is the finish.~||
82
82
83
83
##Main Features
84
84
85
-
*computing the difference between two texts.
86
-
*capable tohand more than plainascii. Arrays or List of any type that implements hashCode() and equals() correctly can be subject to differencing using this library
85
+
*Computing the difference between two texts.
86
+
*Capable tohandle more than plainASCII. Arrays or List of any type that implements hashCode() and equals() correctly can be subject to differencing using this library
87
87
* patch and unpatch the text with the given patch
88
88
* parsing the unified diff format
89
89
* producing human-readable differences
@@ -95,10 +95,10 @@ for (DiffRow row : rows) {
95
95
96
96
###Algorithms
97
97
98
-
*Myer's diff
98
+
*Myers diff
99
99
* HistogramDiff
100
100
101
-
But it can easily replaced by any other which is better forhanding your texts. I have plan to add implementation of some in future.
101
+
But it can easilybereplaced by any other which is better forhandling your texts. I haveaplan to addtheimplementation of some in the future.
102
102
103
103
##Source Code conventions
104
104
@@ -123,7 +123,7 @@ This is a valid piece of source code:
123
123
124
124
###To Install
125
125
126
-
Just add the code below to yourmaven dependencies:
126
+
Just add the code below to yourMaven dependencies:
127
127
128
128
```xml
129
129
<dependency>
@@ -133,7 +133,7 @@ Just add the code below to your maven dependencies: