Skip to content

Commit 0d15097

Browse files
committed
some renaming
1 parent dbfdffd commit 0d15097

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/com/github/difflib/UnifiedDiffUtils.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)