Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dk2k
Copy link
Contributor

@dk2k dk2k commented Aug 22, 2024

Removed unused StringBuilder

Signed-off-by: Dmitry Kryukov <[email protected]>
Copy link
Contributor

❌ 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?

@dblock
Copy link
Member

dblock commented Aug 23, 2024

Same comment as #15360 (comment) please.

Copy link
Member

@dbwiddis dbwiddis left a 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('}');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see @psychbot authored this.

@psychbot - Was this string builder to be used in this method and it was a miss to not use it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants