1
2
3
4
5
6
7 package com.puppycrawl.tools.checkstyle.checks.imports.redundantimport;
8
9 import com.puppycrawl.tools.checkstyle.checks.imports.redundantimport.*;
10 import com.puppycrawl.tools.checkstyle.checks.imports.redundantimport.InputRedundantImportBug;
11 import java.io.*;
12 import java.lang.*;
13 import java.lang.String;
14
15 import java.util.List;
16 import java.util.List;
17 import java.util.Iterator;
18 import java.util.Enumeration;
19 import java.util.Arrays;
20
21 import javax.swing.JToolBar;
22 import javax.swing.JToggleButton;
23 import javax.swing.ScrollPaneLayout;
24 import javax.swing.BorderFactory;
25 import static java.io.File.listRoots;
26
27 import static javax.swing.WindowConstants.*;
28 import static javax.swing.WindowConstants.*;
29 import static java.io.File.createTempFile;
30 import static java.io.File.pathSeparator;
31
32 import java.awt.Component;
33 import java.awt.Graphics2D;
34 import java.awt.HeadlessException;
35 import java.awt.Label;
36 import java.util.Date;
37 import java.util.Calendar;
38 import java.util.BitSet;
39
40
41
42
43
44
45
46
47
48 import static java.lang.Math.PI;
49 import static com.puppycrawl.tools.checkstyle.checks.imports.RedundantImportCheck.MSG_SAME;
50
51
52
53
54
55
56
57
58
59 class InputRedundantImportWithChecker
60 {
61
62 private Class mUse1 = null;
63
64 private Class mUse2 = java.io.File.class;
65
66 private Class mUse3 = Iterator[].class;
67
68 private Class mUse4 = java.util.Enumeration[].class;
69
70 private String ftpClient = null;
71
72
73 {
74 int[] x = {};
75 Arrays.sort(x);
76 Object obj = javax.swing.BorderFactory.createEmptyBorder();
77 File[] files = listRoots();
78 }
79
80
81 private JToolBar.Separator mSep = null;
82
83
84 private Object mUse5 = new Object();
85
86
87 private Object mUse6 = new javax.swing.JToggleButton.ToggleButtonModel();
88
89
90
91 private int Component;
92
93
94
95
96 public void Label() {}
97
98
99
100
101
102
103 public void render() {}
104
105
106
107
108
109
110
111
112
113 public void aMethodWithManyLinks() {}
114 }