-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed unused StringBuilder #15362
base: main
Are you sure you want to change the base?
Removed unused StringBuilder #15362
Conversation
Signed-off-by: Dmitry Kryukov <[email protected]>
❌ Gradle check result for 2d1830c: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Same comment as #15360 (comment) please. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The result of this change is to override Object.toString()
to return Object.toString()
. If that were the case, deleting the method would be better.
But it seems clear that super
is intended to be sb
here.
@@ -276,8 +276,6 @@ public boolean equals(Object o) { | |||
|
|||
@Override | |||
public String toString() { | |||
StringBuilder sb = new StringBuilder(); | |||
sb.append('{').append(this.repositoriesMetadata).append('}'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed unused StringBuilder