@@ -129,15 +129,14 @@ private static void processLinesInPrevChunk(List<String[]> rawChunk, Patch<Strin
129
129
130
130
/**
131
131
* generateUnifiedDiff takes a Patch and some other arguments, returning the Unified Diff format
132
- * text representing the Patch.
132
+ * text representing the Patch. Author: Bill James (tankerbay@gmail.com).
133
133
*
134
134
* @param originalFileName - Filename of the original (unrevised file)
135
135
* @param revisedFileName - Filename of the revised file
136
136
* @param originalLines - Lines of the original file
137
137
* @param patch - Patch created by the diff() function
138
138
* @param contextSize - number of lines of context output around each difference in the file.
139
139
* @return List of strings representing the Unified Diff representation of the Patch argument.
140
- * @author Bill James (tankerbay@gmail.com)
141
140
*/
142
141
public static List <String > generateUnifiedDiff (String originalFileName ,
143
142
String revisedFileName , List <String > originalLines , Patch <String > patch ,
@@ -200,13 +199,12 @@ public static List<String> generateUnifiedDiff(String originalFileName,
200
199
201
200
/**
202
201
* processDeltas takes a list of Deltas and outputs them together in a single block of
203
- * Unified-Diff-format text.
202
+ * Unified-Diff-format text. Author: Bill James (tankerbay@gmail.com).
204
203
*
205
204
* @param origLines - the lines of the original file
206
205
* @param deltas - the Deltas to be output as a single block
207
206
* @param contextSize - the number of lines of context to place around block
208
207
* @return
209
- * @author Bill James (tankerbay@gmail.com)
210
208
*/
211
209
private static List <String > processDeltas (List <String > origLines ,
212
210
List <AbstractDelta <String >> deltas , int contextSize , boolean newFile ) {
@@ -297,11 +295,10 @@ private static List<String> processDeltas(List<String> origLines,
297
295
}
298
296
299
297
/**
300
- * getDeltaText returns the lines to be added to the Unified Diff text from the Delta parameter
298
+ * getDeltaText returns the lines to be added to the Unified Diff text from the Delta parameter. Author: Bill James (tankerbay@gmail.com).
301
299
*
302
300
* @param delta - the Delta to output
303
301
* @return list of String lines of code.
304
- * @author Bill James (tankerbay@gmail.com)
305
302
*/
306
303
private static List <String > getDeltaText (AbstractDelta <String > delta ) {
307
304
List <String > buffer = new ArrayList <>();
0 commit comments