<div dir="ltr"><div dir="ltr"><div dir="ltr">On Fri, Jan 10, 2025 at 9:32 AM Archie Cobbs <<a href="mailto:archie.cobbs@gmail.com" target="_blank">archie.cobbs@gmail.com</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">On Fri, Jan 10, 2025 at 1:49 AM Jan Lahoda <<a href="mailto:jan.lahoda@oracle.com" target="_blank">jan.lahoda@oracle.com</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>

  
  <div><p>I And
      the "lint" here is the "global" Lint instance, that (AFAIK) never
      suppresses anything. I.e. the condition in the "if" statement is
      always true, I believe.</p></div></blockquote><div>The root Lint instance doesn't include any <span style="font-family:monospace">@SuppressWarnings</span> suppressions but it does include suppressions from command line flags like <span style="font-family:monospace">-Xlint:-preview</span>, so the "if" statement can be false.</div></div></div></div></blockquote><div><br></div><div>Oops - I am wrong about that. You are right - <span style="font-family:monospace">Lint.suppressedValues</span> does not get initialized from <span style="font-family:monospace">Xlint:-foo</span> flags, only from <span style="font-family:monospace">@SuppressWarnings</span> annotations.</div><div><br></div><div>And that also explains my bogus test for classfile minor versions.</div><div><br></div><div>Thanks!</div><div><br></div><div>-Archie<br></div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Archie L. Cobbs<br></div></div>
</div>