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

17 lines
540 B
HTML

<html>
<body>
Reports methods that are declared in the same class, have the same name, and the same number of parameters.
Such overloads cam be very confusing because it can be unclear which overload gets called.
<p><b>Example:</b></p>
<pre><code>
class Main {
public static void execute(Runnable r) {}
public static &lt;T&gt; void execute(RunnableFuture&lt;T&gt; c) {}
}
</code></pre>
<!-- tooltip end -->
<p>
Use the option to ignore overloaded methods whose parameter types are definitely incompatible.
</p>
</body>
</html>