Polishing
This commit is contained in:
@@ -1458,6 +1458,7 @@ public class AnnotatedElementUtils {
|
||||
List<T> getAggregatedResults();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* {@link Processor} that {@linkplain #process(AnnotatedElement, Annotation, int)
|
||||
* processes} annotations but does not {@linkplain #postProcess post-process} or
|
||||
@@ -1468,7 +1469,6 @@ public class AnnotatedElementUtils {
|
||||
|
||||
private final boolean alwaysProcesses;
|
||||
|
||||
|
||||
public SimpleAnnotationProcessor() {
|
||||
this(false);
|
||||
}
|
||||
@@ -1498,6 +1498,7 @@ public class AnnotatedElementUtils {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* {@link SimpleAnnotationProcessor} that always returns {@link Boolean#TRUE} when
|
||||
* asked to {@linkplain #process(AnnotatedElement, Annotation, int) process} an
|
||||
@@ -1512,6 +1513,7 @@ public class AnnotatedElementUtils {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* {@link Processor} that gets the {@code AnnotationAttributes} for the
|
||||
* target annotation during the {@link #process} phase and then merges
|
||||
@@ -1533,7 +1535,6 @@ public class AnnotatedElementUtils {
|
||||
|
||||
private final List<AnnotationAttributes> aggregatedResults;
|
||||
|
||||
|
||||
MergedAnnotationAttributesProcessor() {
|
||||
this(false, false, false);
|
||||
}
|
||||
@@ -1635,7 +1636,6 @@ public class AnnotatedElementUtils {
|
||||
Object value = AnnotationUtils.getValue(annotation, sourceAttributeName);
|
||||
return AnnotationUtils.adaptValue(element, value, this.classValuesAsString, this.nestedAnnotationsAsMap);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -31,10 +31,12 @@ abstract class AbstractConditionalEnumConverter implements ConditionalConverter
|
||||
|
||||
private final ConversionService conversionService;
|
||||
|
||||
|
||||
protected AbstractConditionalEnumConverter(ConversionService conversionService) {
|
||||
this.conversionService = conversionService;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType) {
|
||||
for (Class<?> interfaceType : ClassUtils.getAllInterfacesForClass(sourceType.getType())) {
|
||||
|
||||
@@ -1,3 +1,19 @@
|
||||
/*
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.springframework.lang;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
|
||||
Reference in New Issue
Block a user