mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
21 lines
442 B
HTML
21 lines
442 B
HTML
<html>
|
|
<body>
|
|
Reports unnecessary cast expressions.
|
|
|
|
<p>Example:</p>
|
|
<pre><code>
|
|
static Object toObject(String s) {
|
|
return (Object) s;
|
|
}
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p>
|
|
Use the checkbox below to ignore clarifying casts e.g., casts in collection calls where <code>Object</code> is expected:
|
|
<pre><code>
|
|
static void removeFromList(List<String> l, Object o) {
|
|
l.remove((String)o);
|
|
}
|
|
</code></pre>
|
|
|
|
</body>
|
|
</html> |