suggest casting int to long when Long is expecting

This commit is contained in:
anna
2013-11-28 12:16:22 +01:00
parent f2c576c7de
commit 5847e27156
5 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
// "Cast parameter to 'long'" "true"
class a {
void f(Long l) {}
void g() {
f((long) 0);
}
}

View File

@@ -0,0 +1,8 @@
// "Cast parameter to 'long'" "true"
class a {
void f(Long l) {}
void g() {
f(<caret>0);
}
}