mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
overload resolution: boxing should ignore null types (IDEA-148692)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class Test {
|
||||
private void <warning descr="Private method 'foo(java.lang.String, java.lang.Object)' is never used">foo</warning>(String s, Object o) {
|
||||
System.out.println(s + "; o:" + o);
|
||||
}
|
||||
|
||||
private void foo(String s, boolean b) {
|
||||
System.out.println(s + "; b:" + b);
|
||||
}
|
||||
|
||||
{
|
||||
foo(null, false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user