Java
Overloaded methods with same number of parameters
Warning
New
Last modified: 03 December 2024Reports 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.
Example:
class Main {
public static void execute(Runnable r) {}
public static <T> void execute(RunnableFuture<T> c) {}
}
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
OverloadedMethodsWithSameNumberOfParameters
Use the option to ignore overloaded methods whose parameter types are definitely incompatible.
Here you can find the description of settings available for the Overloaded methods with same number of parameters inspection, and the reference of their default values.
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Java, 243.23126 |
Thanks for your feedback!
Was this page helpful?