mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 14:25:04 +07:00
IDEA-110917 Incorrect "Redundant Cast" on Complex Conditional
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
public class Foo {
|
||||
public static void main(String[] args) {
|
||||
final boolean b = false;
|
||||
final Integer i = (<warning descr="Casting '3' to 'Integer' is redundant">Integer</warning>)3;
|
||||
final short s = (short)(b ? i : (int)Integer.valueOf(3));
|
||||
System.out.println(s);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user