ensure cast to class type is suggested when argument type is null (IDEA-159884)

This commit is contained in:
Anna Kozlova
2016-08-16 17:35:48 +03:00
parent 74c9a08a25
commit e743d2ad59
3 changed files with 21 additions and 0 deletions

View File

@@ -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);
}
}

View File

@@ -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);
}
}