mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 15:50:49 +07:00
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
21 lines
899 B
HTML
21 lines
899 B
HTML
<html>
|
|
<body>
|
|
Reports Java code constructs that may fail to compile in future Java versions.
|
|
<p>The following problems are reported:</p>
|
|
<ul>
|
|
<li>Uses of <code>assert</code>, <code>enum</code> or <code>_</code> as an identifier</li>
|
|
<li>Uses of the <code>var</code>, <code>yield</code>, or <code>record</code> restricted identifier as a type name</li>
|
|
<li>Unqualified calls to methods named <code>yield</code></li>
|
|
<li>Modifiers on the <code>requires java.base</code> statement inside of <code>module-info.java</code></li>
|
|
<li>Redundant semicolons between import statements</li>
|
|
</ul>
|
|
<p><b>Example:</b></p>
|
|
<pre><code>
|
|
// This previously legal class does not compile with Java 14,
|
|
// as 'yield' became a restricted identifier.
|
|
public class yield {}
|
|
</code></pre>
|
|
<p>Fixing these issues timely may simplify migration to future Java versions.</p>
|
|
<!-- tooltip end -->
|
|
</body>
|
|
</html> |