Remove redundant modifiers

This commit is contained in:
Phillip Webb
2015-09-08 15:06:44 -07:00
parent 460ca75fce
commit e07df7e4c6
210 changed files with 325 additions and 325 deletions

View File

@@ -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);
}

View File

@@ -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");

View File

@@ -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) {

View File

@@ -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);
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -29,7 +29,7 @@ import javax.lang.model.element.Modifier;
*/
class VariableTree extends ReflectionWrapper {
public VariableTree(Object instance) {
VariableTree(Object instance) {
super(instance);
}