diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-20 14:48:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-10-07 13:20:01 +0200 |
commit | 04ace01ec5f4c18a294a10f68bb42bddda3b29c4 (patch) | |
tree | cf7ee887899682bc9e962331f14140894f09b771 /qadevOOo/tests/java/ifc | |
parent | 060956beaa577c6da46b74dd2f6f4a82a59b884d (diff) |
java: remove unnecessary adding of empty strings
Change-Id: I3825ea5fb1eb34ca52659350e202f95abea945a9
Diffstat (limited to 'qadevOOo/tests/java/ifc')
4 files changed, 6 insertions, 6 deletions
diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleContext.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleContext.java index 927658b69bbb..cabf818af527 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleContext.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleContext.java @@ -64,7 +64,7 @@ public class _XAccessibleContext extends MultiMethodTest { */ public void _getAccessibleChildCount() { childCount = oObj.getAccessibleChildCount(); - log.println("" + childCount + " children found."); + log.println(childCount + " children found."); tRes.tested("getAccessibleChildCount()", childCount > -1); } diff --git a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleValue.java b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleValue.java index e4362339f976..63de455e43c6 100644 --- a/qadevOOo/tests/java/ifc/accessibility/_XAccessibleValue.java +++ b/qadevOOo/tests/java/ifc/accessibility/_XAccessibleValue.java @@ -87,7 +87,7 @@ public class _XAccessibleValue extends MultiMethodTest { } if (curVal < minVal || maxVal < curVal) { - log.println("" + (curVal - minVal) + "," + (maxVal - curVal)); + log.println((curVal - minVal) + "," + (maxVal - curVal)); log.println("Current value " + curVal + " is not in range [" + minVal + "," + maxVal + "]"); result = false; diff --git a/qadevOOo/tests/java/ifc/i18n/_XBreakIterator.java b/qadevOOo/tests/java/ifc/i18n/_XBreakIterator.java index cd8ef6b894d6..dcdca9f0a684 100644 --- a/qadevOOo/tests/java/ifc/i18n/_XBreakIterator.java +++ b/qadevOOo/tests/java/ifc/i18n/_XBreakIterator.java @@ -574,7 +574,7 @@ public class _XBreakIterator extends MultiMethodTest { locale, charType); iPos = endPos; vCharBlockBounds.add(new Boundary(startPos, endPos)); - log.println("" + vCharBlockBounds.size() + "). Bounds: [" + log.println(vCharBlockBounds.size() + "). Bounds: [" + startPos + "," + endPos + "]; Type = " + charType); vCharBlockTypes.add(Short.valueOf(charType)); } diff --git a/qadevOOo/tests/java/ifc/table/_XTableColumns.java b/qadevOOo/tests/java/ifc/table/_XTableColumns.java index dbe675356d71..d0d1b03bf66e 100644 --- a/qadevOOo/tests/java/ifc/table/_XTableColumns.java +++ b/qadevOOo/tests/java/ifc/table/_XTableColumns.java @@ -327,8 +327,8 @@ public class _XTableColumns extends MultiMethodTest { throws com.sun.star.lang.IndexOutOfBoundsException { for (int i = 0; i <= lastColumn && i < 3; i++) { - setCellText(xRange.getCellByPosition(i, 0), "" + i + "a"); - setCellText(xRange.getCellByPosition(i, 1), "" + i + "b"); + setCellText(xRange.getCellByPosition(i, 0), i + "a"); + setCellText(xRange.getCellByPosition(i, 1), i + "b"); } for (int i = 3; i <= lastColumn && i < 10; i++) { @@ -355,7 +355,7 @@ public class _XTableColumns extends MultiMethodTest { String c1 = getCellText(xCellRange.getCellByPosition(col, 0)); String c2 = getCellText(xCellRange.getCellByPosition(col, 1)); - if (!((""+ idx + "a").equals(c1) && (""+ idx + "b").equals(c2))) { + if (!((idx + "a").equals(c1) && (idx + "b").equals(c2))) { log.println("FAILED for column " + col + " and index " + idx + "(" + c1 + "," + c2 + ")"); |