test data for (IDEA-22899)

This commit is contained in:
anna
2012-04-09 13:02:28 +02:00
parent 38c8ea8d02
commit 7255e91447
3 changed files with 19 additions and 0 deletions
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<problems/>
@@ -0,0 +1,15 @@
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");
}
}
@@ -39,6 +39,8 @@ public class RedundantCast15Test extends InspectionTestCase {
public void testRawCast() throws Exception { doTest();}
public void testRawCastsToAvoidIncompatibility() throws Exception { doTest();}
public void testIDEA22899() throws Exception { doTest();}
public void testTypeParameterAccessChecksJava7() throws Exception {
final JavaVersionServiceImpl versionService = (JavaVersionServiceImpl)JavaVersionService.getInstance();