Permalink
Browse files

changed toString()

  • Loading branch information...
Bela Ban
Bela Ban committed Feb 28, 2011
1 parent b8b99c7 commit 7ac81b896108fe892e522b9ed1ad916741fdac0c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/org/jgroups/util/PayloadUUID.java
@@ -70,10 +70,10 @@ public void readFrom(DataInputStream in) throws IOException, IllegalAccessExcept
}
public String toString() {
- return super.toString() + "-" + payload;
+ return super.toString() + (payload == null? "" : "(" + payload + ")");
}
public String toStringLong() {
- return super.toStringLong() + "-" + payload;
+ return super.toStringLong() + (payload == null? "" : "(" + payload + ")");
}
}

0 comments on commit 7ac81b8

Please sign in to comment.