aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/xml/Element.java
diff options
context:
space:
mode:
authorM. Dietrich <mdt@emdete.de>2014-09-01 10:40:45 +0200
committerM. Dietrich <mdt@emdete.de>2014-09-01 10:40:45 +0200
commit2acf510ea97666919ac066a2bf312f47a386ac56 (patch)
treeb28eb88e6b8335af6b655c40af8ada563b5b93c6 /src/eu/siacs/conversations/xml/Element.java
parent3558fa5f5bcbf73ecb5c8174b208ac0c36e708b1 (diff)
optimize string operations a bit
Diffstat (limited to 'src/eu/siacs/conversations/xml/Element.java')
-rw-r--r--src/eu/siacs/conversations/xml/Element.java4
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 d23a81baf..a09946c22 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));
}
}