KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > InputImport


1 ////////////////////////////////////////////////////////////////////////////////
2
// Test case file for checkstyle.
3
// Created: 2001
4
////////////////////////////////////////////////////////////////////////////////
5
package com.puppycrawl.tools.checkstyle;
6
7 import com.puppycrawl.tools.checkstyle.*;
8                                      import com.puppycrawl.tools.checkstyle.GlobalProperties;
9 import java.io.*;
10 import java.lang.*;
11 import java.lang.String JavaDoc;
12 import java.sql.Connection JavaDoc;
13 import java.util.List JavaDoc;
14 import java.util.List JavaDoc;
15 import sun.net.ftpclient.FtpClient;
16 import java.util.Iterator JavaDoc;
17 import java.util.Enumeration JavaDoc;
18 import java.util.Arrays JavaDoc;
19 import javax.swing.JToolBar JavaDoc;
20 import javax.swing.JToggleButton JavaDoc;
21 import javax.swing.ScrollPaneLayout JavaDoc;
22 import javax.swing.BorderFactory JavaDoc;
23 import static java.io.File.listRoots JavaDoc;
24
25 import static javax.swing.WindowConstants JavaDoc.*;
26 import static javax.swing.WindowConstants JavaDoc.*;
27 import static java.io.File.createTempFile JavaDoc;
28 import static sun.net.ftpclient.FtpClient.*;
29 import java.awt.Component JavaDoc;
30 import java.awt.Label JavaDoc;
31
32 /**
33  * Test case for imports
34  * @author Oliver Burn
35  * @author lkuehne
36  * @author Michael Studman
37  **/

38 class InputImport
39 {
40     /** ignore **/
41     private Class JavaDoc mUse1 = Connection JavaDoc.class;
42     /** ignore **/
43     private Class JavaDoc mUse2 = java.io.File JavaDoc.class;
44     /** ignore **/
45     private Class JavaDoc mUse3 = Iterator JavaDoc[].class;
46     /** ignore **/
47     private Class JavaDoc mUse4 = java.util.Enumeration JavaDoc[].class;
48     /** usage of illegal import **/
49     private FtpClient ftpClient = null;
50
51     /** usage via static method, both normal and fully qualified */
52     {
53         int[] x = {};
54         Arrays.sort(x);
55         Object JavaDoc obj = javax.swing.BorderFactory.createEmptyBorder();
56         File[] files = listRoots();
57     }
58
59     /** usage of inner class as type */
60     private JToolBar.Separator JavaDoc mSep = null;
61
62     /** usage of inner class in Constructor */
63     private Object JavaDoc mUse5 = new ScrollPaneLayout.UIRessource JavaDoc();
64
65     /** usage of inner class in constructor, fully qualified */
66     private Object JavaDoc mUse6 = new javax.swing.JToggleButton.ToggleButtonModel();
67
68     /** we use class name as member's name. */
69     private int Component;
70
71     public void Label() {}
72 }
73
Popular Tags