Why this matters
Wildcard imports (import package.*;) can lead to ambiguity, increase compilation time, and introduce unintended dependencies. Explicit imports improve readability and maintainability.
Ensure that imports are explicitly listed and avoid using wildcard imports (import package.*;).
Wildcard imports (import package.*;) can lead to ambiguity, increase compilation time, and introduce unintended dependencies. Explicit imports improve readability and maintainability.
Side-by-side examples engineers can pattern-match during review.
import java.util.*;import java.util.List;
import java.util.Map;From the same buckets as this rule.
For changes that affect architecture, data models, external APIs, security posture, deployment topology, or cost (>10%), create an ADR in docs/adr/ using the standard template (Context, Decision, Consequences) and link the PR and issue IDs.