use boxed type instead of expected primitive when NULL type is calculated

this allows int -> Integer signature changes when null is passed where primitive is expected (IDEA-164942)
This commit is contained in:
Anna Kozlova
2018-06-18 19:48:12 +03:00
parent f6853fecd7
commit 876dd36dd9
3 changed files with 13 additions and 0 deletions
@@ -0,0 +1,5 @@
// "Change 1st parameter of method 'bar' from 'int' to 'Integer'" "true"
public class Bar {
void bar(Integer i) { }
{ bar(null);}
}
@@ -0,0 +1,5 @@
// "Change 1st parameter of method 'bar' from 'int' to 'Integer'" "true"
public class Bar {
void bar(int i) { }
{ bar(n<caret>ull);}
}