# | Line 28 | Line 28 | |
---|---|---|
28 | * @author Martin Buchholz | |
29 | */ | |
30 | ||
31 | < | import java.io.*; |
32 | < | import java.util.*; |
33 | < | import java.util.concurrent.*; |
34 | < | import java.util.concurrent.atomic.*; |
31 | > | import java.util.Vector; |
32 | ||
33 | public class CopyInto { | |
34 | private static void realMain(String[] args) throws Throwable { | |
35 | try { | |
36 | < | Vector<String> v = new Vector<String>(); |
36 | > | Vector<String> v = new Vector<>(); |
37 | v.add("foo"); | |
38 | v.copyInto(new Integer[3]); | |
39 | fail("Expected ArrayStoreException"); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |