diff options
author | rbuj <robert.buj@gmail.com> | 2014-09-09 23:20:09 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-09-11 06:12:37 +0000 |
commit | d44ace5d50b41a7a68d77f16a77b31786e3a7f12 (patch) | |
tree | 701525170e362ea9e9f1bccaaa9e850475bebf75 /xmerge | |
parent | de1db03480c86aa386b5cff09c4eac0eddbadf53 (diff) |
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@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmerge')
-rw-r--r-- | xmerge/source/xmerge/java/org/openoffice/xmerge/util/OfficeUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 c3433f2e8b2f..d2385bcafd46 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); } |