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

16 lines
592 B
HTML

<html>
<body>
Reports expressions that are affected by unboxing conversion (automatic unwrapping of objects into primitive values).
Try not to use objects instead of primitives. It might significantly affect the performance.
<p><b>Example:</b></p>
<pre><code>int x = new Integer(42);</code></pre>
<p>The quick-fix makes the conversion explicit:</p>
<pre><code>int x = new Integer(42).intValue();</code></pre>
<!-- tooltip end -->
<p>
<i>AutoUnboxing</i> appeared in Java 5.
This inspection can help to downgrade for backward compatibility with earlier Java versions.
</p>
</body>
</html>