Skip to content

Commit

Permalink
Removed formatting ('[', ']') around headers
Browse files Browse the repository at this point in the history
  • Loading branch information
belaban committed Nov 18, 2024
1 parent d774cc0 commit 2972922
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/org/jgroups/protocols/FragHeader.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public Supplier<? extends Header> create() {


public String toString() {
return "[id=" + id + ", frag_id=" + frag_id + ", num_frags=" + num_frags + ']';
return "id=" + id + ", frag_id=" + frag_id + ", num_frags=" + num_frags;
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/org/jgroups/protocols/PingHeader.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public int serializedSize() {
}

public String toString() {
return String.format("[%s cluster=%s initial_discovery=%b]", type2Str(type), cluster_name, initial_discovery);
return String.format("%s cluster=%s initial_discovery=%b", type2Str(type), cluster_name, initial_discovery);
}

static String type2Str(byte t) {
Expand Down
2 changes: 1 addition & 1 deletion src/org/jgroups/protocols/TpHeader.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public TpHeader(byte[] n) {
public short getMagicId() {return 60;}

public String toString() {
return String.format("[cluster=%s]", cluster_name != null ? new String(cluster_name) : "null");
return String.format("cluster=%s", cluster_name != null ? new String(cluster_name) : "null");
}


Expand Down

0 comments on commit 2972922

Please sign in to comment.