mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 01:50:56 +07:00
9 lines
243 B
Java
9 lines
243 B
Java
// "Simplify 'Objects.nonNull(...)' to true extracting side effects" "true-preview"
|
|
import java.util.Set;
|
|
import java.util.Objects;
|
|
|
|
class X {
|
|
void test(Set<String> set) {
|
|
boolean b = Objects.nonNull(set.<caret>add("foo"));
|
|
}
|
|
} |