mirror of
https://github.com/java-diff-utils/java-diff-utils.git
synced 2026-03-13 10:11:17 +08:00
removed changes of method parameters
This commit is contained in:
@@ -62,13 +62,6 @@ public final class DiffRow {
|
||||
return oldLine;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param oldLine the oldLine to set
|
||||
*/
|
||||
public void setOldLine(String oldLine) {
|
||||
this.oldLine = oldLine;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the newLine
|
||||
*/
|
||||
@@ -76,13 +69,6 @@ public final class DiffRow {
|
||||
return newLine;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param newLine the newLine to set
|
||||
*/
|
||||
public void setNewLine(String newLine) {
|
||||
this.newLine = newLine;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
|
||||
@@ -207,10 +207,10 @@ public class DiffRowGenerator {
|
||||
* @param patch the given patch
|
||||
* @return the DiffRows between original and revised texts
|
||||
*/
|
||||
public List<DiffRow> generateDiffRows(List<String> original, List<String> revised, Patch<String> patch) throws DiffException {
|
||||
public List<DiffRow> generateDiffRows(final List<String> originalText, final List<String> revisedText, Patch<String> patch) throws DiffException {
|
||||
// normalize the lines (expand tabs, escape html entities)
|
||||
original = StringUtils.normalize(original);
|
||||
revised = StringUtils.normalize(revised);
|
||||
List<String> original = StringUtils.normalize(originalText);
|
||||
List<String> revised = StringUtils.normalize(revisedText);
|
||||
|
||||
// wrap to the column width
|
||||
original = StringUtils.wrapText(original, this.columnWidth);
|
||||
|
||||
Reference in New Issue
Block a user