Skip to content

chore(imports): drop the java.awt.* / java.util.* co-wildcard in four files#192

Merged
DemchaAV merged 1 commit into
developfrom
chore/v18-awt-wildcard-footgun
Jun 14, 2026
Merged

chore(imports): drop the java.awt.* / java.util.* co-wildcard in four files#192
DemchaAV merged 1 commit into
developfrom
chore/v18-awt-wildcard-footgun

Conversation

@DemchaAV

Copy link
Copy Markdown
Owner

Four files imported both java.awt.* and java.util.*, which leaves List resolvable from either java.awt.List or java.util.List — it compiles today only because java.awt.List is never referenced, but a future java.awt reference would turn it into an ambiguous-import break.

Each file uses only java.awt.Color from the awt wildcard (Stroke is explicitly imported from com.demcha.compose.engine.components.content.shape, and List is already explicitly imported as java.util.List), so the wildcard becomes an explicit import java.awt.Color;:

  • InvoiceTemplateComposer
  • ProposalTemplateComposer
  • WeeklyScheduleTemplateComposer
  • PdfRenderingSystemECS (engine renderer)

No behaviour change — import-only. Full suite 1378 green. Scoped deliberately to the awt/util ambiguity; the broader style.* / node.* wildcard convention introduced by the v1.8 sweep is left as-is.

Lane: hygiene (templates + engine imports).

… files

InvoiceTemplateComposer, ProposalTemplateComposer,
WeeklyScheduleTemplateComposer, and the engine PdfRenderingSystemECS
imported both java.awt.* and java.util.*, leaving List resolvable from
either java.awt.List or java.util.List — sound today only because
java.awt.List was never referenced. Each uses only java.awt.Color, so the
awt wildcard becomes an explicit import java.awt.Color. No behaviour change;
full suite green.
@DemchaAV DemchaAV merged commit 231d51d into develop Jun 14, 2026
11 checks passed
@DemchaAV DemchaAV deleted the chore/v18-awt-wildcard-footgun branch June 14, 2026 16:31
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.

1 participant