mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 01:09:46 +07:00
[java] More tests for preview; minor fixes
GitOrigin-RevId: 7f72c5f68ab821e728eb0d5152f0910f48035046
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7a1f179f41
commit
9c6aeba5b4
@@ -1,4 +1,4 @@
|
||||
// "Box primitive value in conditional branch" "true"
|
||||
// "Box primitive value in conditional branch" "true-preview"
|
||||
class Test {
|
||||
public static void main(String strictArgument) {
|
||||
Boolean flag = Math.random() > 0.5 ? getBoolean() : Boolean.FALSE;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Box primitive value in conditional branch" "true"
|
||||
// "Box primitive value in conditional branch" "true-preview"
|
||||
class Test {
|
||||
public static void main(String strictArgument) {
|
||||
Boolean strict = strictArgument == null ? Boolean.FALSE : strictArgument.isEmpty() ? true : null;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Box primitive value in conditional branch" "true"
|
||||
// "Box primitive value in conditional branch" "true-preview"
|
||||
class Test {
|
||||
public static void main(String strictArgument) {
|
||||
Integer test = Math.random() > 0.5 ? Integer.valueOf(1) :
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Box primitive value in conditional branch" "true"
|
||||
// "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;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Box primitive value in conditional branch" "true"
|
||||
// "Box primitive value in conditional branch" "true-preview"
|
||||
class Test {
|
||||
public static void main(String strictArgument) {
|
||||
Boolean strict = strictArgument == null ? false : strictArgument.isEmpty() ? true : <caret>null;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Box primitive value in conditional branch" "true"
|
||||
// "Box primitive value in conditional branch" "true-preview"
|
||||
class Test {
|
||||
public static void main(String strictArgument) {
|
||||
Integer test = Math.random() > 0.5 ? 1 :
|
||||
|
||||
Reference in New Issue
Block a user