mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
merged CVS and Subversion versions
This commit is contained in:
+10
-1
@@ -4,6 +4,7 @@ import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.AbstractList;
|
||||
|
||||
interface TestInter{}
|
||||
|
||||
public class OverlyStrongTypeCastInspection
|
||||
{
|
||||
@@ -11,7 +12,15 @@ public class OverlyStrongTypeCastInspection
|
||||
{
|
||||
List bar = new ArrayList();
|
||||
AbstractList foo = (ArrayList) bar;
|
||||
List foo2 = (List) bar;
|
||||
List foo2 = (ArrayList) bar;
|
||||
double x = (double)3.0f;
|
||||
}
|
||||
|
||||
<T> void test(T foo){}
|
||||
|
||||
void test2()
|
||||
{
|
||||
Object o = null;
|
||||
test((TestInter)o);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user