Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8361424

Eliminate Log methods mandatoryWarning() and mandatoryNote()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 25
    • tools
    • jdk-26+4-86-g25ed36f3ef1

    • generic
    • generic

      The fix for JDK-8359493 added the ability to associate DiagnosticFlag's to specific warnings defined in compiler.properties. In cases where the flag is an inherent property of the warning itself, compiler.properties is a more appropriate place to declare the flag, instead having to add it at all the points in the codebase where that particular warning is used.

      In particular, the Log API methods mandatoryWarning() and mandatoryNote() can be removed, as they serve only to add the MANDATORY flag to warnings and notes for which "mandatoryness" is inherent. Doing so will help decomplexify the code a bit.

            acobbs Archie Cobbs
            acobbs Archie Cobbs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: