mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-04 12:17:12 +07:00
Fixes IDEA-289497 'NullPointerException' recommendations contradiction GitOrigin-RevId: 07be3f2ee5ce03bd7380b563806fcad03fb2a0f5
9 lines
248 B
Java
9 lines
248 B
Java
// "Assert 'container != null'" "true"
|
|
import java.util.function.Supplier;
|
|
|
|
class A{
|
|
void test(){
|
|
Object container = Math.random() > 0.5 ? "" : null;
|
|
Supplier<String> r = () -> Math.random() > 0.5 ? container.toS<caret>tring() : "";
|
|
}
|
|
} |