mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-23 02:58:00 +01:00
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:
parent
25d40aed36
commit
d48175560d
1 changed files with 3 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue