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

10 lines
429 B
HTML

<html>
<body>
Reports redundant calls of <code>java.lang.Class</code> methods.
<p>For example, <code>Xyz.class.isInstance(object)</code> can be replaced with <code>object instanceof Xyz</code>.
The instanceof check is preferred: even though the performance will probably be the same as these methods are intrinsics,
they better indicate a static check.</p>
<!-- tooltip end -->
<p><small>New in 2018.2</small></p>
</body>
</html>