mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
16 lines
694 B
HTML
16 lines
694 B
HTML
<html>
|
|
<body>
|
|
Reports mixed octal and decimal integer literals in a single array initializer.
|
|
This situation might happen when you copy a list of numbers into an array initializer.
|
|
Some numbers in the array might be zero-padded and the compiler will interpret them as octal.
|
|
<p><b>Example:</b></p>
|
|
<pre><code>int[] elapsed = {1, 13, 052};</code></pre>
|
|
<p>After the quick-fix that removes a leading zero is applied:</p>
|
|
<pre><code>int[] elapsed = {1, 13, 52};</code></pre>
|
|
<p>If it is an octal number (for example, after a variable inline), then you can use another quick-fix that converts octal to decimal:</p>
|
|
<code>int[] elapsed = {1, 13, 42};</code>
|
|
<!-- tooltip end -->
|
|
<p>
|
|
|
|
</body>
|
|
</html> |