You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
299 B
16 lines
299 B
10 years ago
|
package pkg;
|
||
|
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.List;
|
||
|
|
||
|
public class TestClassCast {
|
||
|
public void test(List var1) {
|
||
|
Object var2 = var1;
|
||
|
if(var1 != null) {
|
||
|
((List)(var2 = new ArrayList(var1))).add("23");
|
||
|
}
|
||
|
|
||
|
System.out.println(((List)var2).size());
|
||
|
}
|
||
|
}
|