Remove redundant modifiers
This commit is contained in:
@@ -48,7 +48,7 @@ class TypeElementMembers {
|
||||
|
||||
private final Map<String, ExecutableElement> publicSetters = new LinkedHashMap<String, ExecutableElement>();
|
||||
|
||||
public TypeElementMembers(ProcessingEnvironment env, TypeElement element) {
|
||||
TypeElementMembers(ProcessingEnvironment env, TypeElement element) {
|
||||
this.env = env;
|
||||
process(element);
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ class TypeExcludeFilter {
|
||||
|
||||
private final Set<String> excludes = new HashSet<String>();
|
||||
|
||||
public TypeExcludeFilter() {
|
||||
TypeExcludeFilter() {
|
||||
add("com.zaxxer.hikari.IConnectionCustomizer");
|
||||
add("groovy.text.markup.MarkupTemplateEngine");
|
||||
add("java.io.Writer");
|
||||
|
||||
@@ -59,7 +59,7 @@ class TypeUtils {
|
||||
|
||||
private final TypeMirror mapType;
|
||||
|
||||
public TypeUtils(ProcessingEnvironment env) {
|
||||
TypeUtils(ProcessingEnvironment env) {
|
||||
this.env = env;
|
||||
Types types = env.getTypeUtils();
|
||||
WildcardType wc = types.getWildcardType(null, null);
|
||||
@@ -67,7 +67,6 @@ class TypeUtils {
|
||||
.getTypeElement(Collection.class.getName()), wc);
|
||||
this.mapType = types.getDeclaredType(
|
||||
this.env.getElementUtils().getTypeElement(Map.class.getName()), wc, wc);
|
||||
|
||||
}
|
||||
|
||||
public String getType(Element element) {
|
||||
|
||||
@@ -43,7 +43,7 @@ class ExpressionTree extends ReflectionWrapper {
|
||||
private final Method arrayValueMethod = findMethod(this.newArrayTreeType,
|
||||
"getInitializers");
|
||||
|
||||
public ExpressionTree(Object instance) {
|
||||
ExpressionTree(Object instance) {
|
||||
super(instance);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,12 +31,12 @@ class ReflectionWrapper {
|
||||
|
||||
private final Object instance;
|
||||
|
||||
public ReflectionWrapper(Object instance) {
|
||||
ReflectionWrapper(Object instance) {
|
||||
this.type = instance.getClass();
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
public ReflectionWrapper(String type, Object instance) {
|
||||
ReflectionWrapper(String type, Object instance) {
|
||||
this.type = findClass(instance.getClass().getClassLoader(), type);
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ class Tree extends ReflectionWrapper {
|
||||
private final Method GET_CLASS_TREE_MEMBERS = findMethod(
|
||||
findClass("com.sun.source.tree.ClassTree"), "getMembers");
|
||||
|
||||
public Tree(Object instance) {
|
||||
Tree(Object instance) {
|
||||
super("com.sun.source.tree.Tree", instance);
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ class Tree extends ReflectionWrapper {
|
||||
|
||||
private TreeVisitor treeVisitor;
|
||||
|
||||
public TreeVisitorInvocationHandler(TreeVisitor treeVisitor) {
|
||||
TreeVisitorInvocationHandler(TreeVisitor treeVisitor) {
|
||||
this.treeVisitor = treeVisitor;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ import javax.lang.model.element.Modifier;
|
||||
*/
|
||||
class VariableTree extends ReflectionWrapper {
|
||||
|
||||
public VariableTree(Object instance) {
|
||||
VariableTree(Object instance) {
|
||||
super(instance);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user