1 4 import java.awt.Component ; 5 import java.io.File ; 6 import java.io.*; 7 import java.io.IOException ; 8 import java.lang.reflect.Modifier ; 9 import java.net.*; 10 import java.net.URL ; 11 import java.net.URLConnection ; 12 import java.util.*; 13 import java.util.Map.Entry; 14 import javax.swing.JLabel ; 15 import javax.swing.JTextField ; 16 17 20 public class FunctionalTest implements Runnable { 21 22 public static class Bar extends JTextField { 23 private static final FilePermission BIF = new FilePermission("/etc/passwd", "foo"); 24 private static final FilePermission BIF2 = new FilePermission("Hello world", "bar"); 25 } 26 27 28 29 public class Foo extends JLabel { 30 public String getText() { 31 return super.getText(); 32 } 33 } 34 35 private static final ArrayList[] STATIC_FOO = new ArrayList[0]; 36 private HashSet set = new HashSet(); 37 38 public FunctionalTest() throws IOException { 39 Vector v = new Vector(); 40 for (Enumeration e = v.elements(); e.hasMoreElements();) { } 41 IOException e = new IOException (); 42 43 String buz = "text/plain"; 45 46 ArrayList[] foo = new ArrayList[0]; 48 ArrayList bar = new ArrayList(); 49 bar.add(HashSet.class); 50 bar.add(Integer .class); 51 File [] files = (File [])bar.toArray(new File [0]); 52 53 HashMap biv = new HashMap(); 55 Set set = biv.entrySet(); 56 Iterator iter = set.iterator(); 57 bar.add((Entry)iter.next()); 58 59 60 61 Modifier m = new Modifier (); 63 64 65 69 72 76 throw new IllegalArgumentException (); 77 } 78 79 public SocketOptions bar(URL aURL, URLConnection aConn) { 81 return null; 82 } 83 84 public Component getComp() { 85 return null; 86 } 87 88 public void run() {} 89 } 90 91 | Popular Tags |