mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
23 lines
638 B
HTML
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> |