General polish of new 4.0 classes

Apply consistent styling to new classes introduced in Spring 4.0.

- Javadoc line wrapping, whitespace and formatting
- General code whitespace
- Consistent Assert.notNull messages
This commit is contained in:
Phillip Webb
2013-11-26 14:47:39 -08:00
parent 690051f46c
commit 15698860e1
190 changed files with 350 additions and 695 deletions

View File

@@ -63,8 +63,8 @@ public class GenericTypeAwareAutowireCandidateResolver implements AutowireCandid
}
/**
* Match the given dependency type with its generic type information
* against the given candidate bean definition.
* Match the given dependency type with its generic type information against the given
* candidate bean definition.
*/
protected boolean checkGenericTypeMatch(BeanDefinitionHolder bdHolder, DependencyDescriptor descriptor) {
ResolvableType dependencyType = descriptor.getResolvableType();
@@ -124,8 +124,8 @@ public class GenericTypeAwareAutowireCandidateResolver implements AutowireCandid
/**
* This implementation always returns {@code null},
* leaving suggested value support up to subclasses.
* This implementation always returns {@code null}, leaving suggested value support up
* to subclasses.
*/
@Override
public Object getSuggestedValue(DependencyDescriptor descriptor) {
@@ -133,8 +133,8 @@ public class GenericTypeAwareAutowireCandidateResolver implements AutowireCandid
}
/**
* This implementation always returns {@code null},
* leaving lazy resolution support up to subclasses.
* This implementation always returns {@code null}, leaving lazy resolution support up
* to subclasses.
*/
@Override
public Object getLazyResolutionProxyIfNecessary(DependencyDescriptor descriptor, String beanName) {

View File

@@ -20,9 +20,8 @@ import java.beans.PropertyEditorSupport;
import java.time.ZoneId;
/**
* Editor for {@code java.time.ZoneId}, translating zone ID Strings into
* {@code ZoneId} objects. Exposes the {@code TimeZone} ID as a text
* representation.
* Editor for {@code java.time.ZoneId}, translating zone ID Strings into {@code ZoneId}
* objects. Exposes the {@code TimeZone} ID as a text representation.
*
* @author Nicholas Williams
* @since 4.0