Skip to content

Commit 3db65e3

Browse files
committed
removed changes of method parameters
1 parent 9965544 commit 3db65e3

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

src/main/java/difflib/text/DiffRow.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,27 +62,13 @@ public String getOldLine() {
6262
return oldLine;
6363
}
6464

65-
/**
66-
* @param oldLine the oldLine to set
67-
*/
68-
public void setOldLine(String oldLine) {
69-
this.oldLine = oldLine;
70-
}
71-
7265
/**
7366
* @return the newLine
7467
*/
7568
public String getNewLine() {
7669
return newLine;
7770
}
7871

79-
/**
80-
* @param newLine the newLine to set
81-
*/
82-
public void setNewLine(String newLine) {
83-
this.newLine = newLine;
84-
}
85-
8672
/*
8773
* (non-Javadoc)
8874
*

src/main/java/difflib/text/DiffRowGenerator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,10 @@ public List<DiffRow> generateDiffRows(List<String> original, List<String> revise
207207
* @param patch the given patch
208208
* @return the DiffRows between original and revised texts
209209
*/
210-
public List<DiffRow> generateDiffRows(List<String> original, List<String> revised, Patch<String> patch) throws DiffException {
210+
public List<DiffRow> generateDiffRows(final List<String> originalText, final List<String> revisedText, Patch<String> patch) throws DiffException {
211211
// normalize the lines (expand tabs, escape html entities)
212-
original = StringUtils.normalize(original);
213-
revised = StringUtils.normalize(revised);
212+
List<String> original = StringUtils.normalize(originalText);
213+
List<String> revised = StringUtils.normalize(revisedText);
214214

215215
// wrap to the column width
216216
original = StringUtils.wrapText(original, this.columnWidth);

0 commit comments

Comments
 (0)