mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
unused return value inspection should ignore methods used in unknonwn files IDEA-207191
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user