Skip to content

Conversation

@Pankraz76
Copy link
Contributor

image

@Pankraz76 Pankraz76 force-pushed the fix-'StringBuilder-buffer'-can-be-replaced-with-'String'- branch from 8137254 to 93c8da6 Compare May 31, 2025 10:18
@Pankraz76 Pankraz76 force-pushed the fix-'StringBuilder-buffer'-can-be-replaced-with-'String'- branch from 93c8da6 to 5ad598d Compare May 31, 2025 10:22
return path.toString();
}

public String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

buffer.append(updatePolicy);
buffer.append('}');
return buffer.toString();
return "{enabled=" + enabled + ", checksums=" + checksumPolicy + ", updates=" + updatePolicy + '}';
Copy link
Contributor

Choose a reason for hiding this comment

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

don't do this; it's actively bad

Copy link
Contributor Author

Choose a reason for hiding this comment

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

before it was optimized, right?

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.

2 participants