Skip to content

Fix interface injection deduplication when all injected interfaces are already present - #58

Merged
shartte merged 1 commit into
neoforged:mainfrom
shartte:fix-deduplication
Dec 14, 2025
Merged

Fix interface injection deduplication when all injected interfaces are already present#58
shartte merged 1 commit into
neoforged:mainfrom
shartte:fix-deduplication

Conversation

@shartte

@shartte shartte commented Dec 14, 2025

Copy link
Copy Markdown
Contributor

Fixes a spurious , after the implements list when all injected interfaces on a class have been removed through deduplication because they were already present.

Example:

A class already implements java.util.Set. Trying to inject java.util.Set leads to class C implements Set, {

@neoforged-pr-publishing

Copy link
Copy Markdown
  • Publish PR to GitHub Packages

@shartte
shartte requested a review from Matyrobbrt December 14, 2025 11:49
@shartte
shartte merged commit f6fb292 into neoforged:main Dec 14, 2025
3 checks passed
@shartte
shartte deleted the fix-deduplication branch December 14, 2025 11:51
@neoforged-releases

Copy link
Copy Markdown

🚀 This PR has been released as JavaSourceTransformer version 2.0.4.

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