Remove duplicate words in documentation and polish Javadoc

This commit is contained in:
Sam Brannen
2020-03-31 11:49:15 +02:00
parent 53106d5741
commit e26764d249
94 changed files with 213 additions and 213 deletions

View File

@@ -28,8 +28,8 @@ public class NoSuchMessageException extends RuntimeException {
/**
* Create a new exception.
* @param code code that could not be resolved for given locale
* @param locale locale that was used to search for the code within
* @param code the code that could not be resolved for given locale
* @param locale the locale that was used to search for the code within
*/
public NoSuchMessageException(String code, Locale locale) {
super("No message found under code '" + code + "' for locale '" + locale + "'.");
@@ -37,7 +37,7 @@ public class NoSuchMessageException extends RuntimeException {
/**
* Create a new exception.
* @param code code that could not be resolved for given locale
* @param code the code that could not be resolved for given locale
*/
public NoSuchMessageException(String code) {
super("No message found under code '" + code + "' for locale '" + Locale.getDefault() + "'.");

View File

@@ -44,7 +44,7 @@ public interface Condition {
/**
* Determine if the condition matches.
* @param context the condition context
* @param metadata metadata of the {@link org.springframework.core.type.AnnotationMetadata class}
* @param metadata the metadata of the {@link org.springframework.core.type.AnnotationMetadata class}
* or {@link org.springframework.core.type.MethodMetadata method} being checked
* @return {@code true} if the condition matches and the component can be registered,
* or {@code false} to veto the annotated component's registration

View File

@@ -149,7 +149,7 @@ public class FileSystemXmlApplicationContext extends AbstractXmlApplicationConte
* <p>Note: Even if a given path starts with a slash, it will get
* interpreted as relative to the current VM working directory.
* This is consistent with the semantics in a Servlet container.
* @param path path to the resource
* @param path the path to the resource
* @return the Resource handle
* @see org.springframework.web.context.support.XmlWebApplicationContext#getResourceByPath
*/

View File

@@ -79,7 +79,7 @@ public class MessageSourceAccessor {
/**
* Retrieve the message for the given code and the default Locale.
* @param code code of the message
* @param code the code of the message
* @param defaultMessage the String to return if the lookup fails
* @return the message
*/
@@ -90,7 +90,7 @@ public class MessageSourceAccessor {
/**
* Retrieve the message for the given code and the given Locale.
* @param code code of the message
* @param code the code of the message
* @param defaultMessage the String to return if the lookup fails
* @param locale the Locale in which to do lookup
* @return the message
@@ -102,7 +102,7 @@ public class MessageSourceAccessor {
/**
* Retrieve the message for the given code and the default Locale.
* @param code code of the message
* @param code the code of the message
* @param args arguments for the message, or {@code null} if none
* @param defaultMessage the String to return if the lookup fails
* @return the message
@@ -114,7 +114,7 @@ public class MessageSourceAccessor {
/**
* Retrieve the message for the given code and the given Locale.
* @param code code of the message
* @param code the code of the message
* @param args arguments for the message, or {@code null} if none
* @param defaultMessage the String to return if the lookup fails
* @param locale the Locale in which to do lookup
@@ -127,7 +127,7 @@ public class MessageSourceAccessor {
/**
* Retrieve the message for the given code and the default Locale.
* @param code code of the message
* @param code the code of the message
* @return the message
* @throws org.springframework.context.NoSuchMessageException if not found
*/
@@ -137,7 +137,7 @@ public class MessageSourceAccessor {
/**
* Retrieve the message for the given code and the given Locale.
* @param code code of the message
* @param code the code of the message
* @param locale the Locale in which to do lookup
* @return the message
* @throws org.springframework.context.NoSuchMessageException if not found
@@ -148,7 +148,7 @@ public class MessageSourceAccessor {
/**
* Retrieve the message for the given code and the default Locale.
* @param code code of the message
* @param code the code of the message
* @param args arguments for the message, or {@code null} if none
* @return the message
* @throws org.springframework.context.NoSuchMessageException if not found
@@ -159,7 +159,7 @@ public class MessageSourceAccessor {
/**
* Retrieve the message for the given code and the given Locale.
* @param code code of the message
* @param code the code of the message
* @param args arguments for the message, or {@code null} if none
* @param locale the Locale in which to do lookup
* @return the message

View File

@@ -137,7 +137,7 @@ public class StaticApplicationContext extends GenericApplicationContext {
/**
* Associate the given message with the given code.
* @param code lookup code
* @param locale locale message should be found within
* @param locale the locale message should be found within
* @param defaultMessage message associated with this lookup code
* @see #getStaticMessageSource
*/

View File

@@ -58,7 +58,7 @@ public class BindException extends Exception implements BindingResult {
/**
* Create a new BindException instance for a target bean.
* @param target target bean to bind onto
* @param target the target bean to bind onto
* @param objectName the name of the target object
* @see BeanPropertyBindingResult
*/