mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
IDEA-99725 "Constant conditions & exceptions" inspection produces invalid code
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// "Replace with 'integer != null ?:'" "true"
|
||||
|
||||
import java.lang.Integer;
|
||||
|
||||
class A{
|
||||
void test(){
|
||||
Integer integer = null;
|
||||
int i = integer != null ? integer.toString().length() : <selection>0</selection>;
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Replace with 'integer != null ?:'" "true"
|
||||
|
||||
import java.lang.Integer;
|
||||
|
||||
class A{
|
||||
void test(){
|
||||
Integer integer = null;
|
||||
int i = in<caret>teger.toString().length();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user