On Wed, 5 Feb 2025 04:14:21 GMT, Alexey Semenyuk <asemen...@openjdk.org> wrote:

> Clean warnings found in jpackage tests when building them with `-Xlint:all` 
> option in Eclipse IDE. 
> 
> They are:
>  - redundant imports (solution: remove)
>  - unused function/fields (solution: remove)
>  - missing SuppressWarnings-s (solution: add what is missing)
>  - redundant SuppressWarnings-s (solution: remove)
>  - raw types used (solution: use wildcard or more specific types if 
> appropriate)
>  - generic varargs (solution: convert to single/double/list arguments)
>  - an incomplete list of enum elements in switch statements (solution: add 
> `default` branch)
> 
> To prevent regression, added `-Xlint:all -Werror` to the compiler command 
> line of all jpackage tests

This pull request has now been integrated.

Changeset: efc597bf
Author:    Alexey Semenyuk <asemen...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/efc597bf47bff46596bb29b03b5750bfc5afe851
Stats:     352 lines in 83 files changed: 72 ins; 51 del; 229 mod

8349564: Clean warnings found in jpackage tests when building them with 
-Xlint:all

Reviewed-by: almatvee

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

PR: https://git.openjdk.org/jdk/pull/23455

Reply via email to