RFR: 7457: Unnecessary imports should fail the build

Marcus Hirt hirt at openjdk.org
Fri May 19 00:15:54 UTC 2023


On Thu, 18 May 2023 20:43:08 GMT, Alex Macdonald <aptmac at openjdk.org> wrote:

> This PR addresses [JMC-7457](https://bugs.openjdk.org/browse/JMC-7457) [0], in which the build should fail if there are unnecessary imports.
> 
> I had a wip branch for this a while ago, but shelved it because it requires a new dependency (maven-checkstyle-plugin) and at the time we were in a dependency freeze ahead of the 8.2.0 release if I recall correctly. Looking back through my assigned issues I think it makes more sense to try again now.
> 
> I currently have checkstyle looking for unused, redundant, and wildcard imports.
> 
> [0] https://bugs.openjdk.org/browse/JMC-7457

Marked as reviewed by hirt (Lead).

-------------

PR Review: https://git.openjdk.org/jmc/pull/484#pullrequestreview-1433606793


More information about the jmc-dev mailing list