mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
test data for (IDEA-22899)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<problems/>
|
||||
+15
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user