don't use void in non-free method calls (IDEA-172958)

This commit is contained in:
Anna Kozlova
2017-05-16 20:07:32 +03:00
parent eaeffca0b8
commit 94dd554c0c
3 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
// "Create method 'test'" "true"
public class Test {
{
int i = (Integer)test();
}
private Object test() {
return null;
}
}

View File

@@ -0,0 +1,6 @@
// "Create method 'test'" "true"
public class Test {
{
int i = (Integer)te<caret>st();
}
}