|
15 | 15 | */
|
16 | 16 | package com.google.testing.compile;
|
17 | 17 |
|
18 |
| -import static com.sun.source.tree.Tree.Kind.ANNOTATION_TYPE; |
19 |
| -import static com.sun.source.tree.Tree.Kind.BOOLEAN_LITERAL; |
20 |
| -import static com.sun.source.tree.Tree.Kind.BREAK; |
21 |
| -import static com.sun.source.tree.Tree.Kind.CHAR_LITERAL; |
22 |
| -import static com.sun.source.tree.Tree.Kind.CLASS; |
23 |
| -import static com.sun.source.tree.Tree.Kind.CONTINUE; |
24 |
| -import static com.sun.source.tree.Tree.Kind.DOUBLE_LITERAL; |
25 |
| -import static com.sun.source.tree.Tree.Kind.ENUM; |
26 |
| -import static com.sun.source.tree.Tree.Kind.FLOAT_LITERAL; |
27 |
| -import static com.sun.source.tree.Tree.Kind.IDENTIFIER; |
28 |
| -import static com.sun.source.tree.Tree.Kind.INTERFACE; |
29 |
| -import static com.sun.source.tree.Tree.Kind.INT_LITERAL; |
30 |
| -import static com.sun.source.tree.Tree.Kind.LABELED_STATEMENT; |
31 |
| -import static com.sun.source.tree.Tree.Kind.LONG_LITERAL; |
32 |
| -import static com.sun.source.tree.Tree.Kind.MEMBER_SELECT; |
33 |
| -import static com.sun.source.tree.Tree.Kind.METHOD; |
34 |
| -import static com.sun.source.tree.Tree.Kind.NULL_LITERAL; |
35 |
| -import static com.sun.source.tree.Tree.Kind.STRING_LITERAL; |
36 |
| -import static com.sun.source.tree.Tree.Kind.TYPE_PARAMETER; |
37 |
| -import static com.sun.source.tree.Tree.Kind.VARIABLE; |
38 |
| - |
39 | 18 | import com.google.common.base.Optional;
|
40 | 19 | import com.google.common.base.Preconditions;
|
41 | 20 | import com.google.common.collect.ImmutableList;
|
42 |
| -import com.google.common.collect.ImmutableSet; |
43 | 21 | import com.google.common.collect.Iterables;
|
44 |
| -import com.google.common.collect.Sets; |
45 | 22 |
|
46 | 23 | import com.sun.source.tree.BreakTree;
|
47 | 24 | import com.sun.source.tree.ClassTree;
|
|
66 | 43 | * A class containing methods which are useful for gaining access to {@code Tree} instances from
|
67 | 44 | * within unit tests.
|
68 | 45 | */
|
69 |
| -@SuppressWarnings("restriction") // Sun APIs usage intended |
70 | 46 | final class MoreTrees {
|
71 | 47 |
|
72 | 48 | /** Parses the source given into a {@link CompilationUnitTree}. */
|
|
0 commit comments