From d48175560db5df43fd5854c92a877a9d88be8b30 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Wed, 24 Sep 2003 19:06:27 +0000 Subject: [PATCH] Improved toString() method git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2105 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/RosterEntry.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/org/jivesoftware/smack/RosterEntry.java b/source/org/jivesoftware/smack/RosterEntry.java index 4135aa6bd..4ed4d590f 100644 --- a/source/org/jivesoftware/smack/RosterEntry.java +++ b/source/org/jivesoftware/smack/RosterEntry.java @@ -98,6 +98,9 @@ public class RosterEntry { public String toString() { StringBuffer buf = new StringBuffer(); + if (name != null) { + buf.append(name).append(": "); + } buf.append(user); Iterator groups = getGroups(); if (groups.hasNext()) {