mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
ensure cast to class type is suggested when argument type is null (IDEA-159884)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// "Cast parameter to 'java.lang.String'" "true"
|
||||
class a {
|
||||
void f(Long... l) {}
|
||||
void f(String s) {}
|
||||
void g() {
|
||||
f((String) null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// "Cast parameter to 'java.lang.String'" "true"
|
||||
class a {
|
||||
void f(Long... l) {}
|
||||
void f(String s) {}
|
||||
void g() {
|
||||
f(<caret>null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user