mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 22:20:54 +07:00
10 lines
284 B
Java
10 lines
284 B
Java
// "Box primitive value in conditional branch" "true-preview"
|
|
class Test {
|
|
public static void main(String strictArgument) {
|
|
Boolean flag = Math.random() > 0.5 ? <caret>getBoolean() : false;
|
|
}
|
|
|
|
static Boolean getBoolean() {
|
|
return Math.random() > 0.5 ? true : null;
|
|
}
|
|
} |