mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-12-23 13:07:59 +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() {
|
public String toString() {
|
||||||
StringBuffer buf = new StringBuffer();
|
StringBuffer buf = new StringBuffer();
|
||||||
|
if (name != null) {
|
||||||
|
buf.append(name).append(": ");
|
||||||
|
}
|
||||||
buf.append(user);
|
buf.append(user);
|
||||||
Iterator groups = getGroups();
|
Iterator groups = getGroups();
|
||||||
if (groups.hasNext()) {
|
if (groups.hasNext()) {
|
||||||
|
|
Loading…
Reference in a new issue