Skip to content

Fix interfaces being injected after permits clause#64

Merged
Matyrobbrt merged 1 commit into
mainfrom
permits-clause-order
May 21, 2026
Merged

Fix interfaces being injected after permits clause#64
Matyrobbrt merged 1 commit into
mainfrom
permits-clause-order

Conversation

@Matyrobbrt

Copy link
Copy Markdown
Member

The clause order is extends/implements first, then permits. So if the class does not have an implements clause but it has a permits clause, we must ensure we insert the implements clause before the permits clause

The clause order is extends/implements first, then permits. So if the class does not have an implements clause but it has a permits clause, we must ensure we insert the implements clause before the permits clause
@Matyrobbrt Matyrobbrt added the bug Something isn't working label May 20, 2026
@neoforged-pr-publishing

Copy link
Copy Markdown
  • Publish PR to GitHub Packages

@Matyrobbrt Matyrobbrt merged commit 924de60 into main May 21, 2026
3 checks passed
@Matyrobbrt Matyrobbrt deleted the permits-clause-order branch May 21, 2026 08:46
@neoforged-releases

Copy link
Copy Markdown

🚀 This PR has been released as JavaSourceTransformer version 2.0.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants