From 6b70974269553a4ae3ee260e26e3b0011a213109 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Fri, 3 May 2013 09:48:41 +0000 Subject: [PATCH] SMACK-437 Replaced 'String.isEmpty()' with 'String.length() > 0' git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/branches/smack_3_3_0@13631 b35dd754-fafc-0310-a699-88a17e54d16e --- .../jivesoftware/smackx/pubsub/provider/ItemProvider.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/org/jivesoftware/smackx/pubsub/provider/ItemProvider.java b/source/org/jivesoftware/smackx/pubsub/provider/ItemProvider.java index 314d7c921..7b06af301 100644 --- a/source/org/jivesoftware/smackx/pubsub/provider/ItemProvider.java +++ b/source/org/jivesoftware/smackx/pubsub/provider/ItemProvider.java @@ -65,11 +65,11 @@ public class ItemProvider implements PacketExtensionProvider else if (parser.getEventType() == XmlPullParser.START_TAG) { payloadText.append("<").append(parser.getName()); - - if (parser.getName().equals(payloadElemName) && (!payloadNS.isEmpty())) + + if (parser.getName().equals(payloadElemName) && (payloadNS.length() > 0)) payloadText.append(" xmlns=\"").append(payloadNS).append("\""); int n = parser.getAttributeCount(); - + for (int i = 0; i < n; i++) payloadText.append(" ").append(parser.getAttributeName(i)).append("=\"") .append(parser.getAttributeValue(i)).append("\"");