fix RemoveUnusedImportsStep leftovers#1337
Open
Pankraz76 wants to merge 1 commit intopalantir:developfrom
Open
fix RemoveUnusedImportsStep leftovers#1337Pankraz76 wants to merge 1 commit intopalantir:developfrom
RemoveUnusedImportsStep leftovers#1337Pankraz76 wants to merge 1 commit intopalantir:developfrom
Conversation
Member
|
Thanks for your interest in palantir/palantir-java-format, @Pankraz76! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request. |
Generate changelog in
|
RemoveUnusedImportsStep leftovers
6de63fa to
add336a
Compare
Pankraz76
commented
Jul 2, 2025
palantir-java-format/src/main/java/com/palantir/javaformat/java/RemoveUnusedImports.java
Show resolved
Hide resolved
Pankraz76
commented
Jul 2, 2025
palantir-java-format/src/main/java/com/palantir/javaformat/java/RemoveUnusedImports.java
Outdated
Show resolved
Hide resolved
825b51d to
0c4e48c
Compare
ccd562a to
f537f78
Compare
|
fixedRanges is not used ? @Pankraz76 |
iddeepak
reviewed
Jul 2, 2025
palantir-java-format/src/main/java/com/palantir/javaformat/java/RemoveUnusedImports.java
Outdated
Show resolved
Hide resolved
f537f78 to
d9aede7
Compare
Author
as no (mutation) test coverage imposed, of course not. Whole branch makes no sense in this case: Good catch! |
iddeepak
previously approved these changes
Jul 3, 2025
d9aede7 to
c10069a
Compare
c10069a to
8b915a0
Compare
Pankraz76
commented
Jul 3, 2025
palantir-java-format/src/test/java/com/palantir/javaformat/java/RemoveUnusedImportsTest.java
Show resolved
Hide resolved
Author
|
issue: formattingWithoutImportOrdering() com.palantir.javaformat.java.FormatterTest |
8b915a0 to
aa381a9
Compare
aa381a9 to
622732f
Compare
Author
|
fixes empty line issue, added this test case to import tests as well, as important. Good that we have tests. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
depends on:
palantir-java-formatas default formatter inRemoveUnusedImportsStepdiffplug/spotless#2541ref:
RemoveUnusedImportsStepleftovers google/google-java-format#1262fix #1261
implementation fixed by reliable contributor @iddeepak
Thanks for this initiative.
RemoveUnusedImportsStepleftovers google/google-java-format#1262RemoveUnusedImportsStepleftovers google/google-java-format#1262 (comment)before: 14 issues:
now: 10 issues: