Skip to content

fix RemoveUnusedImportsStep leftovers #1337

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

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

Conversation

Pankraz76
Copy link

@Pankraz76 Pankraz76 commented Jun 29, 2025

@palantirtech
Copy link
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.

@changelog-app
Copy link

changelog-app bot commented Jun 29, 2025

Generate changelog in changelog/@unreleased

Type (Select exactly one)

  • Feature (Adding new functionality)
  • Improvement (Improving existing functionality)
  • Fix (Fixing an issue with existing functionality)
  • Break (Creating a new major version by breaking public APIs)
  • Deprecation (Removing functionality in a non-breaking way)
  • Migration (Automatically moving data/functionality to a new system)

Description

RemoveUnusedImportsTest

Check the box to generate changelog(s)

  • Generate changelog entry

@Pankraz76 Pankraz76 marked this pull request as draft June 29, 2025 09:39
@Pankraz76 Pankraz76 changed the title RemoveUnusedImportsTest fix RemoveUnusedImportsStep leftovers Jun 29, 2025
@Pankraz76 Pankraz76 force-pushed the fix-RemoveUnusedImportsTest branch 2 times, most recently from 6de63fa to add336a Compare July 2, 2025 11:50
@Pankraz76 Pankraz76 marked this pull request as ready for review July 2, 2025 11:51
@iddeepak
Copy link

iddeepak commented Jul 2, 2025


fixedRanges is not used ? @Pankraz76

@Pankraz76 Pankraz76 force-pushed the fix-RemoveUnusedImportsTest branch from f537f78 to d9aede7 Compare July 3, 2025 10:56
@Pankraz76
Copy link
Author

Pankraz76 commented Jul 3, 2025

fixedRanges is not used ? @Pankraz76

as no (mutation) test coverage imposed, of course not. Whole branch makes no sense in this case:

Good catch!

@Pankraz76 Pankraz76 requested a review from iddeepak July 3, 2025 10:59
iddeepak
iddeepak previously approved these changes Jul 3, 2025
@Pankraz76 Pankraz76 force-pushed the fix-RemoveUnusedImportsTest branch from d9aede7 to c10069a Compare July 3, 2025 11:05
@policy-bot policy-bot bot dismissed iddeepak’s stale review July 3, 2025 11:05

Invalidated by push of c10069a

@Pankraz76 Pankraz76 force-pushed the fix-RemoveUnusedImportsTest branch from c10069a to 8b915a0 Compare July 3, 2025 11:10
@Pankraz76
Copy link
Author

issue: formattingWithoutImportOrdering() com.palantir.javaformat.java.FormatterTest

@Pankraz76 Pankraz76 force-pushed the fix-RemoveUnusedImportsTest branch from 8b915a0 to aa381a9 Compare July 4, 2025 10:04
@Pankraz76 Pankraz76 force-pushed the fix-RemoveUnusedImportsTest branch from aa381a9 to 622732f Compare July 4, 2025 10:07
@Pankraz76
Copy link
Author

fixes empty line issue, added this test case to import tests as well, as important. Good that we have tests.

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.

3 participants