unused return value inspection should ignore methods used in unknonwn files IDEA-207191

This commit is contained in:
Dmitry Batkovich
2019-02-13 16:36:24 +03:00
parent 6f9b2cad47
commit 87937bc45c
7 changed files with 58 additions and 19 deletions
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems/>
@@ -0,0 +1,19 @@
import java.util.Random;
class JavaClass {
private final Random rnd = new Random();
public int getRandom13() {
return rnd.nextInt(13);
}
public int getRandom42() {
return rnd.nextInt(42);
}
}
class JavaMain {
public static void main(String[] args) {
System.out.println(new JavaClass().getRandom42());
}
}
@@ -0,0 +1,7 @@
class Util {
void m() {
new JavaClass().random13
}
}