@@ -130,21 +130,21 @@ public static Patch<String> parseUnifiedDiff(List<String> diff) {
130130 * generateUnifiedDiff takes a Patch and some other arguments, returning the Unified Diff format text representing
131131 * the Patch.
132132 *
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
135135 * @param originalLines - Lines of the original file
136136 * @param patch - Patch created by the diff() function
137137 * @param contextSize - number of lines of context output around each difference in the file.
138138 * @return List of strings representing the Unified Diff representation of the Patch argument.
139139 * @author Bill James (tankerbay@gmail.com)
140140 */
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 ,
143143 int contextSize ) {
144144 if (!patch .getDeltas ().isEmpty ()) {
145145 List <String > ret = new ArrayList <>();
146- ret .add ("--- " + original );
147- ret .add ("+++ " + revised );
146+ ret .add ("--- " + originalFileName );
147+ ret .add ("+++ " + revisedFileName );
148148
149149 List <Delta <String >> patchDeltas = new ArrayList <>(
150150 patch .getDeltas ());
0 commit comments