aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-09-01 10:58:26 +0200
committerDaniel Gultsch <daniel@gultsch.de>2014-09-01 10:58:26 +0200
commit0ffdb03aa3fb5840989f149e733c4d6cdf98c9ad (patch)
tree78b21bb19f9473c7a30060a455f7d09f78f906b2 /src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java
parent271b0f9c5852fcf6aed92421fc3d5802f930e383 (diff)
parent2acf510ea97666919ac066a2bf312f47a386ac56 (diff)
Merge pull request #402 from emdete/remove_poormans_tostring
optimize string operations a bit
Diffstat (limited to 'src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java')
-rw-r--r--src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java b/src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java
index 1e8e3fd60..d19e6dfd1 100644
--- a/src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java
+++ b/src/eu/siacs/conversations/xmpp/jingle/stanzas/Content.java
@@ -30,7 +30,7 @@ public class Content extends Element {
"urn:xmpp:jingle:apps:file-transfer:3");
Element offer = description.addChild("offer");
Element file = offer.addChild("file");
- file.addChild("size").setContent("" + actualFile.getSize());
+ file.addChild("size").setContent(Long.toString(actualFile.getSize()));
if (otr) {
file.addChild("name").setContent(actualFile.getName() + ".otr");
} else {