diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-09-01 10:58:26 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-09-01 10:58:26 +0200 |
commit | 0ffdb03aa3fb5840989f149e733c4d6cdf98c9ad (patch) | |
tree | 78b21bb19f9473c7a30060a455f7d09f78f906b2 /src/eu/siacs/conversations/xml | |
parent | 271b0f9c5852fcf6aed92421fc3d5802f930e383 (diff) | |
parent | 2acf510ea97666919ac066a2bf312f47a386ac56 (diff) |
Merge pull request #402 from emdete/remove_poormans_tostring
optimize string operations a bit
Diffstat (limited to 'src/eu/siacs/conversations/xml')
-rw-r--r-- | src/eu/siacs/conversations/xml/Element.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eu/siacs/conversations/xml/Element.java b/src/eu/siacs/conversations/xml/Element.java index d23a81ba..a09946c2 100644 --- a/src/eu/siacs/conversations/xml/Element.java +++ b/src/eu/siacs/conversations/xml/Element.java @@ -146,10 +146,10 @@ public class Element { } public void setAttribute(String name, long value) { - this.setAttribute(name, "" + value); + this.setAttribute(name, Long.toString(value)); } public void setAttribute(String name, int value) { - this.setAttribute(name, "" + value); + this.setAttribute(name, Integer.toString(value)); } } |