Files
openide/java/java-impl/resources/inspectionDescriptions/OctalLiteral.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

23 lines
638 B
HTML

<html>
<body>
Reports octal integer literals. Some coding standards prohibit the
use of octal literals, as they may be easily confused with decimal literals.
<p>Example:</p>
<pre><code>
int i = 015;
int j = 0_777;
</code></pre>
<p>This inspection has two different quick-fixes.
After the <b>Convert octal literal to decimal literal</b> quick-fix is applied, the code changes to:</p>
<pre><code>
int i = 13;
int j = 511;
</code></pre>
<p>After the <b>Remove leading zero to make decimal</b> quick-fix is applied, the code changes to:</p>
<pre><code>
int i = 15;
int j = 777;
</code></pre>
<!-- tooltip end -->
</body>
</html>