Improved toString() method

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2105 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-09-24 19:06:27 +00:00 committed by mtucker
parent 25d40aed36
commit d48175560d
1 changed files with 3 additions and 0 deletions

View File

@ -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()) {