blob: 8e867d693b8a516db03bdfc3ce467d5c1a64744f [file]
import java.util.ArrayList;
import java.util.List;
class RedundantCast {
boolean redundantCasts(Object o) {
int p = 0;
if ((Number)p instanceof Integer) {}
return (<warning descr="Casting 'o' to 'List' is redundant">List</warning>)o instanceof ArrayList;
}
}