mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
ensure cast to class type is suggested when argument type is null (IDEA-159884)
This commit is contained in:
+9
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
+9
@@ -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