Skip to content

Commit

Permalink
Fix toString implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <[email protected]>
  • Loading branch information
DarshitChanpura committed Oct 10, 2024
1 parent 9baac32 commit 0eb47ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,9 @@ public String getWriteableName() {
public void writeTo(StreamOutput out) throws IOException {
out.writeList(sharedWithScopes);
}

@Override
public String toString() {
return "ShareWith " + sharedWithScopes;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws

@Override
public String toString() {
return "SharedWithScope {" + scope + ": " + sharedWithPerScope + '}';
return "{" + scope + ": " + sharedWithPerScope + '}';
}

@Override
Expand Down Expand Up @@ -110,7 +110,7 @@ public void setBackendRoles(List<String> backendRoles) {

@Override
public String toString() {
return "ShareWith {" + "users=" + users + ", roles=" + roles + ", backendRoles=" + backendRoles + '}';
return "{" + "users=" + users + ", roles=" + roles + ", backendRoles=" + backendRoles + '}';
}

@Override
Expand Down

0 comments on commit 0eb47ac

Please sign in to comment.