Unused parameters in method hierarchy calls! :)

Hello,

I'm just find one feature in latest build. I have overloaded methods:

String method(String p1, String p2, String p3) {
return "p1 = " + p1;
}

p2 and p3 is not used. Fine. But i have follow method:

String method(String p1, String p2) {
return method(p1, p2, null);
}

IDEA highlight p2 as unused! :) I'm impressed! :)

--
Alexey Efimov, Java Developer
Tops BI


1 comment
Comment actions Permalink

Frankly, I am unaware of this feature.
Could you please describe in more details how it works for you ?
These package local methods you have mentioned should not be highlighted as
unused at all.
Seems there is a bug hiding out there...

--
regards,
--
Alexey Kudravtsev
Software Developer
JetBrains, Inc, http://www.jetbrains.com
"Develop with pleasure!"

"Alexey Efimov" <aefimov.box@gmail.com> wrote in message
news:2cac73a52f48c7544838ed53ac@news.intellij.net...

Hello,

>

I'm just find one feature in latest build. I have overloaded methods:

>

String method(String p1, String p2, String p3) {
return "p1 = " + p1;
}

>

p2 and p3 is not used. Fine. But i have follow method:

>

String method(String p1, String p2) {
return method(p1, p2, null);
}

>

IDEA highlight p2 as unused! :) I'm impressed! :)

>

--
Alexey Efimov, Java Developer
Tops BI

>



0

Please sign in to leave a comment.