Integrated: 7457: Unnecessary imports should fail the build
Alex Macdonald
aptmac at openjdk.org
Fri May 19 18:30:55 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
This pull request has now been integrated.
Changeset: 200d0f8f
Author: Alex Macdonald <aptmac at openjdk.org>
URL: https://git.openjdk.org/jmc/commit/200d0f8fffc4a646c28c2d570f23e0ac48eff117
Stats: 172 lines in 17 files changed: 122 ins; 21 del; 29 mod
7457: Unnecessary imports should fail the build
Reviewed-by: hirt
-------------
PR: https://git.openjdk.org/jmc/pull/484
More information about the jmc-dev
mailing list