@@ -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- * @paramoriginal - Filename of the original (unrevised file)
134- * @paramrevised - Filename of the revised file
133+ * @paramoriginalFileName - Filename of the original (unrevised file)
134+ * @paramrevisedFileName - 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 ,
143143int contextSize ) {
144144if (!patch .getDeltas ().isEmpty ()) {
145145List <String >ret =new ArrayList <>();
146- ret .add ("--- " +original );
147- ret .add ("+++ " +revised );
146+ ret .add ("--- " +originalFileName );
147+ ret .add ("+++ " +revisedFileName );
148148
149149List <Delta <String >>patchDeltas =new ArrayList <>(
150150patch .getDeltas ());