mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
IDEA-165108 Objects.requireNonNull with argument of primitive type should be reported as warning
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// "Remove useless null-check" "true"
|
||||
import java.util.*;
|
||||
|
||||
public class Test {
|
||||
Test(int x) {}
|
||||
|
||||
public void test() {
|
||||
Objects.requireNonNull(new <caret>Test(1)+":"+new Test(2)+":"+new Test(3+new Test(4).hashCode()));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user