-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Fix 'string builder buffer' can be replaced with 'string' #2415
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
Fix 'string builder buffer' can be replaced with 'string' #2415
Conversation
Pankraz76
commented
May 31, 2025
8137254 to
93c8da6
Compare
...n-compat/src/main/java/org/apache/maven/artifact/repository/layout/FlatRepositoryLayout.java
Show resolved
Hide resolved
...n-compat/src/main/java/org/apache/maven/artifact/repository/layout/FlatRepositoryLayout.java
Outdated
Show resolved
Hide resolved
93c8da6 to
5ad598d
Compare
| return path.toString(); | ||
| } | ||
|
|
||
| public String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository) { |
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.
might conflict with:
...n-compat/src/main/java/org/apache/maven/artifact/repository/layout/FlatRepositoryLayout.java
Show resolved
Hide resolved
compat/maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java
Show resolved
Hide resolved
| buffer.append(updatePolicy); | ||
| buffer.append('}'); | ||
| return buffer.toString(); | ||
| return "{enabled=" + enabled + ", checksums=" + checksumPolicy + ", updates=" + updatePolicy + '}'; |
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.
don't do this; it's actively bad
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.
before it was optimized, right?