Integrated: 8347958: Minor compiler cleanups relating to MandatoryWarningHandler

Archie Cobbs acobbs at openjdk.org
Thu Feb 6 14:35:15 UTC 2025


On Thu, 16 Jan 2025 23:47:13 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:

> After recent improvements to Lint-related classes, there are now a few minor cleanup opportunities relating to `MandatoryWarningHandler`.
> 
> 1. The new `LintWarning` class provides access to the associated `LintCategory`. This means that the `LintCategory` parameter being passed to the `MandatoryWarningHandler` constructor is no longer needed.
> 1. The `prefix` string being passed to the `MandatoryWarningHandler` constructor can (in most cases) be inferred as well.
> 1. The field `Check.sunApiHandler` (which has type `MandatoryWarningHandler`) is no longer used and can be removed.

This pull request has now been integrated.

Changeset: 2b82e2d5
Author:    Archie Cobbs <acobbs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/2b82e2d57bdb8cb677764abc99d70f6d03295625
Stats:     48 lines in 3 files changed: 26 ins; 11 del; 11 mod

8347958: Minor compiler cleanups relating to MandatoryWarningHandler

Reviewed-by: mcimadamore

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

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


More information about the compiler-dev mailing list