RFR: JDK-8189591: No way to locally suppress doclint warnings
Joseph D. Darcy
joe.darcy at oracle.com
Tue Oct 12 16:42:56 UTC 2021
On 10/12/2021 8:28 AM, Jonathan Gibbons wrote:
> On Tue, 12 Oct 2021 15:11:13 GMT, Hannes Wallnöfer <hannesw at openjdk.org> wrote:
>
>>> Please review a moderately simple change, to have DocLint check for relevant `@SuppressWarnings` annotations before reporting any messages.
>> src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclint/Env.java line 302:
>>
>>> 300: for (String a: arg.substring(len).split(",")) {
>>> 301: Messages.Group argGroup = gMap.get(a);
>>> 302: if (argGroup != null) {
>> Should we let the user know about unknown doclint:* values?
> I thought about this, but in general, the precedent in `SuppressWarnings` is to not reject unknown values, because they might be supported by other systems.
One special case of other system can be the JDK used for bootstrapping
in the JDK build.
-Joe
More information about the compiler-dev
mailing list