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