mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
redundant cast: compare base types for anonymous classes
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
|
||||
class Y {
|
||||
Y(int x) {}
|
||||
Y bar() {
|
||||
return new Y((<warning descr="Casting '1' to 'int' is redundant">int</warning>) 1) {};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user