mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-31 15:53:38 +07:00
Part of IDEA-291513 "Constant conditions & exceptions" does not flag 'Objects.requireNonNullElse' GitOrigin-RevId: 0cfd983801e8ed08f6407145215f7f9c6b12a684
8 lines
172 B
Java
8 lines
172 B
Java
// "Remove redundant null-check" "true"
|
|
import java.util.*;
|
|
|
|
public class Test {
|
|
public void test() {
|
|
Integer value = Objects.requireNonNullElse(5<caret>5, 66);
|
|
}
|
|
} |