diff options
Diffstat (limited to 'xmerge')
-rw-r--r-- | xmerge/source/xmerge/java/org/openoffice/xmerge/merger/diff/IteratorLCSAlgorithm.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/merger/diff/IteratorLCSAlgorithm.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/merger/diff/IteratorLCSAlgorithm.java index d0957a8d5910..a5298df1926b 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/merger/diff/IteratorLCSAlgorithm.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/merger/diff/IteratorLCSAlgorithm.java @@ -66,14 +66,12 @@ public class IteratorLCSAlgorithm implements DiffAlgorithm { */ private void printDiffTable(int[][] diffTable) { - String tmpString = ""; - for (int i = 0; i < diffTable.length; i++) { + StringBuilder sb = new StringBuilder(); for (int j = 0; j < diffTable[i].length; j++) { - tmpString = tmpString + " " + diffTable[i][j] + " "; + sb.append(" ").append(diffTable[i][j]).append(" "); } - Debug.log(Debug.INFO, tmpString); - tmpString = ""; + Debug.log(Debug.INFO, sb.toString()); } } |