[Libreoffice-commits] core.git: xmerge/source
rbuj
robert.buj at gmail.com
Wed Sep 10 23:13:01 PDT 2014
xmerge/source/xmerge/java/org/openoffice/xmerge/util/OfficeUtil.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit d44ace5d50b41a7a68d77f16a77b31786e3a7f12
Author: rbuj <robert.buj at gmail.com>
Date: Tue Sep 9 23:20:09 2014 +0200
xmerge: Convert a primitive type into a string
Avoid unnecessary temporaries when converting primitive data types into a String.
Change-Id: Ied91859e756ff392b1a0ea8d6d889afae11b2f8d
Reviewed-on: https://gerrit.libreoffice.org/11366
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
Tested-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/util/OfficeUtil.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/util/OfficeUtil.java
index c3433f2..d2385bc 100644
--- a/xmerge/source/xmerge/java/org/openoffice/xmerge/util/OfficeUtil.java
+++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/util/OfficeUtil.java
@@ -100,7 +100,7 @@ public class OfficeUtil implements OfficeConstants {
Element spaceNode = parentDoc.createElement(TAG_SPACE);
spaceNode.setAttribute(ATTRIBUTE_SPACE_COUNT,
- Integer.valueOf(nrSpaces).toString());
+ Integer.toString(nrSpaces));
nodeVec.add(spaceNode);
text = text.substring(nrSpaces);
}
More information about the Libreoffice-commits
mailing list