blob: ba9b21c80b701104a3870dff2fd6fbd128a9e1e8 [file] [log] [blame]
public class RedundantIntCast
{
public static void main(String[] args) {
Integer i = 8;
method((int)i, 1); // int cast is marked as redundant
}
static void method(Object o, Object o1) {
System.out.println("this method works on objects");
}
static void method(int i, int i1) {
System.out.println("this method works on ints");
}
}