mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-209947 Add and/or when several children are displayed (IDEA-CR-46720)
GitOrigin-RevId: 2556ab90f89dccbf9f2b3a820e5894c2b0fcf9a6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
fc79a9d931
commit
7786fe9165
@@ -2,11 +2,11 @@
|
||||
Value is always false (a > 5 && b < 0 && b > a)
|
||||
One of the following happens:
|
||||
Operand #1 of &&-chain is false (a > 5)
|
||||
Operand #2 of &&-chain is false (b < 0)
|
||||
Operand #3 of &&-chain is false (b > a)
|
||||
or operand #2 of &&-chain is false (b < 0)
|
||||
or operand #3 of &&-chain is false (b > a)
|
||||
Left operand is <= -1 (b)
|
||||
Range is known from line #15 (b < 0)
|
||||
Right operand is >= 6 (a)
|
||||
and right operand is >= 6 (a)
|
||||
Range is known from line #15 (a > 5)
|
||||
*/
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Value is always false (s.length == list.size())
|
||||
Left operand is >= 1 (s.length)
|
||||
Range is known from line #12 (s[0])
|
||||
Right operand is 0 (list.size())
|
||||
and right operand is 0 (list.size())
|
||||
Range is known from line #13 (list.isEmpty())
|
||||
*/
|
||||
import java.util.List;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Value is always false (s == null)
|
||||
's' was assigned (s1)
|
||||
s1 != null was checked before (s1 == null)
|
||||
Condition 's1 != null' was checked before (s1 == null)
|
||||
*/
|
||||
class Test {
|
||||
void test(String s, String s1) {
|
||||
|
||||
@@ -3,7 +3,7 @@ Value is always false (x == null)
|
||||
One of the following happens:
|
||||
'x' was assigned (new Object())
|
||||
Expression cannot be null as it's newly created object (new Object())
|
||||
'x' was assigned ("foo")
|
||||
or 'x' was assigned ("foo")
|
||||
Expression cannot be null as it's literal ("foo")
|
||||
*/
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ Value is always false (y == null)
|
||||
One of the following happens:
|
||||
'x' was assigned (new Object())
|
||||
Expression cannot be null as it's newly created object (new Object())
|
||||
'x' was assigned ("foo")
|
||||
or 'x' was assigned ("foo")
|
||||
Expression cannot be null as it's literal ("foo")
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
Value is always false (s == null)
|
||||
s != null was checked before (null == s)
|
||||
Condition 's != null' was checked before (null == s)
|
||||
*/
|
||||
class Test {
|
||||
void test(String s) {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Value is always false (s == s1)
|
||||
's1' was assigned (null)
|
||||
s != null was checked before (null == s)
|
||||
and condition 's != null' was checked before (null == s)
|
||||
*/
|
||||
class Test {
|
||||
void test(String s) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
Value is always false (x * 2 == y * 2 + 1)
|
||||
Result of '*' is even (x * 2)
|
||||
Result of '+' is odd (y * 2 + 1)
|
||||
and result of '+' is odd (y * 2 + 1)
|
||||
Result of '*' is even (y * 2)
|
||||
*/
|
||||
class Test {
|
||||
|
||||
@@ -2,17 +2,17 @@
|
||||
Value is always true (x || (a+b)+(c+d)==10)
|
||||
One of the following happens:
|
||||
Operand #1 of ||-chain is true (x)
|
||||
Operand #2 of ||-chain is true ((a+b)+(c+d)==10)
|
||||
or operand #2 of ||-chain is true ((a+b)+(c+d)==10)
|
||||
Result of '+' is 10 ((a+b)+(c+d))
|
||||
Result of '+' is 3 (a+b)
|
||||
Left operand is 1 (a)
|
||||
'a' was assigned (1)
|
||||
Right operand is 2 (b)
|
||||
and right operand is 2 (b)
|
||||
'b' was assigned (2)
|
||||
Result of '+' is 7 (c+d)
|
||||
and result of '+' is 7 (c+d)
|
||||
Left operand is 3 (c)
|
||||
'c' was assigned (3)
|
||||
Right operand is 4 (d)
|
||||
and right operand is 4 (d)
|
||||
'd' was assigned (4)
|
||||
*/
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
Value is always true (x <= y)
|
||||
x <= y was checked before (x > y)
|
||||
Condition 'x <= y' was checked before (x > y)
|
||||
*/
|
||||
class Test {
|
||||
void test(int x, int y) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
Value is always true (x < y)
|
||||
x < y was checked before (x > y)
|
||||
Condition 'x < y' was checked before (x > y)
|
||||
*/
|
||||
class Test {
|
||||
void test(int x, int y) {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/*
|
||||
Cast may fail ((Integer)x)
|
||||
An execution might exist where...
|
||||
An execution might exist where:
|
||||
An object type is exactly Double which is not a subtype of Integer (x)
|
||||
Type of 'x' is known from line #14 (x instanceof Double)
|
||||
An object type is exactly String which is not a subtype of Integer (x)
|
||||
or an object type is exactly String which is not a subtype of Integer (x)
|
||||
Type of 'x' is known from line #12 (x instanceof String)
|
||||
*/
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
Cast may fail ((Integer)x)
|
||||
An execution might exist where...
|
||||
An execution might exist where:
|
||||
An object type is exactly String which is not a subtype of Integer (x)
|
||||
Type of 'x' is known from line #10 (x instanceof String)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user