@@ -130,21 +130,21 @@ public static Patch<String> parseUnifiedDiff(List<String> diff) {
130
130
* generateUnifiedDiff takes a Patch and some other arguments, returning the Unified Diff format text representing
131
131
* the Patch.
132
132
*
133
- * @param original - Filename of the original (unrevised file)
134
- * @param revised - Filename of the revised file
133
+ * @param originalFileName - Filename of the original (unrevised file)
134
+ * @param revisedFileName - Filename of the revised file
135
135
* @param originalLines - Lines of the original file
136
136
* @param patch - Patch created by the diff() function
137
137
* @param contextSize - number of lines of context output around each difference in the file.
138
138
* @return List of strings representing the Unified Diff representation of the Patch argument.
139
139
* @author Bill James (tankerbay@gmail.com)
140
140
*/
141
- public static List <String > generateUnifiedDiff (String original ,
142
- String revised , List <String > originalLines , Patch <String > patch ,
141
+ public static List <String > generateUnifiedDiff (String originalFileName ,
142
+ String revisedFileName , List <String > originalLines , Patch <String > patch ,
143
143
int contextSize ) {
144
144
if (!patch .getDeltas ().isEmpty ()) {
145
145
List <String > ret = new ArrayList <>();
146
- ret .add ("--- " + original );
147
- ret .add ("+++ " + revised );
146
+ ret .add ("--- " + originalFileName );
147
+ ret .add ("+++ " + revisedFileName );
148
148
149
149
List <Delta <String >> patchDeltas = new ArrayList <>(
150
150
patch .getDeltas ());
0 commit comments