mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
silly assignment: ignore non-trivial casts involving primitives (IDEA-146830)
This commit is contained in:
+3
@@ -21,6 +21,9 @@ class a {
|
||||
<warning descr="Variable 'i' is assigned to itself">i = i</warning>;
|
||||
<warning descr="Variable 'i' is assigned to itself">i = (int)i</warning>;
|
||||
<warning descr="Variable 'o' is assigned to itself">o = ((Object)(o))</warning>;
|
||||
Object o1 = <warning descr="Variable 'o' is assigned to itself">o = ((Object)(o))</warning>;
|
||||
System.out.println(o1);
|
||||
o = (double)o;
|
||||
}
|
||||
void f4() {
|
||||
fpanel.getSize().height = this.fpanel.getSize().height; // not silly. Are you sure you can bet getSize() has no side effects?
|
||||
|
||||
Reference in New Issue
Block a user