diff --git a/spring-aop/src/main/java/org/springframework/aop/support/DelegatePerTargetObjectIntroductionInterceptor.java b/spring-aop/src/main/java/org/springframework/aop/support/DelegatePerTargetObjectIntroductionInterceptor.java
index 0684d74472..b5ef59b3dc 100644
--- a/spring-aop/src/main/java/org/springframework/aop/support/DelegatePerTargetObjectIntroductionInterceptor.java
+++ b/spring-aop/src/main/java/org/springframework/aop/support/DelegatePerTargetObjectIntroductionInterceptor.java
@@ -67,7 +67,7 @@ public class DelegatePerTargetObjectIntroductionInterceptor extends Introduction
public DelegatePerTargetObjectIntroductionInterceptor(Class> defaultImplType, Class> interfaceType) {
this.defaultImplType = defaultImplType;
this.interfaceType = interfaceType;
- // cCeate a new delegate now (but don't store it in the map).
+ // Create a new delegate now (but don't store it in the map).
// We do this for two reasons:
// 1) to fail early if there is a problem instantiating delegates
// 2) to populate the interface map once and once only
diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/xml/NamespaceHandler.java b/spring-beans/src/main/java/org/springframework/beans/factory/xml/NamespaceHandler.java
index 8da64b6070..0cd3620c3d 100644
--- a/spring-beans/src/main/java/org/springframework/beans/factory/xml/NamespaceHandler.java
+++ b/spring-beans/src/main/java/org/springframework/beans/factory/xml/NamespaceHandler.java
@@ -36,7 +36,7 @@ import org.springframework.beans.factory.config.BeanDefinitionHolder;
* it encounters a custom tag directly under a {@code <bean>} tag.
*
*
Developers writing their own custom element extensions typically will
- * not implement this interface drectly, but rather make use of the provided
+ * not implement this interface directly, but rather make use of the provided
* {@link NamespaceHandlerSupport} class.
*
* @author Rob Harrop
diff --git a/spring-core/src/main/java/org/springframework/asm/Frame.java b/spring-core/src/main/java/org/springframework/asm/Frame.java
index f851ff6436..d34f2fada4 100644
--- a/spring-core/src/main/java/org/springframework/asm/Frame.java
+++ b/spring-core/src/main/java/org/springframework/asm/Frame.java
@@ -585,7 +585,7 @@ final class Frame {
}
// pushes the type on the output stack
outputStack[outputStackTop++] = type;
- // updates the maximun height reached by the output stack, if needed
+ // updates the maximum height reached by the output stack, if needed
int top = owner.inputStackTop + outputStackTop;
if (top > owner.outputStackMax) {
owner.outputStackMax = top;
diff --git a/spring-core/src/main/java/org/springframework/util/AutoPopulatingList.java b/spring-core/src/main/java/org/springframework/util/AutoPopulatingList.java
index 9efa171fd1..9cea1c99df 100644
--- a/spring-core/src/main/java/org/springframework/util/AutoPopulatingList.java
+++ b/spring-core/src/main/java/org/springframework/util/AutoPopulatingList.java
@@ -276,7 +276,7 @@ public class AutoPopulatingList implements List, Serializable {
private final Class extends E> elementClass;
public ReflectiveElementFactory(Class extends E> elementClass) {
- Assert.notNull(elementClass, "Element clas must not be null");
+ Assert.notNull(elementClass, "Element class must not be null");
Assert.isTrue(!elementClass.isInterface(), "Element class must not be an interface type");
Assert.isTrue(!Modifier.isAbstract(elementClass.getModifiers()), "Element class cannot be an abstract class");
this.elementClass = elementClass;
diff --git a/spring-core/src/main/java/org/springframework/util/CompositeIterator.java b/spring-core/src/main/java/org/springframework/util/CompositeIterator.java
index 7c1d9e6921..2ce1e5306f 100644
--- a/spring-core/src/main/java/org/springframework/util/CompositeIterator.java
+++ b/spring-core/src/main/java/org/springframework/util/CompositeIterator.java
@@ -68,7 +68,7 @@ public class CompositeIterator implements Iterator {
return iterator.next();
}
}
- throw new NoSuchElementException("Exhaused all iterators");
+ throw new NoSuchElementException("Exhausted all iterators");
}
@Override
diff --git a/spring-core/src/main/java/org/springframework/util/StringUtils.java b/spring-core/src/main/java/org/springframework/util/StringUtils.java
index 8a185a91ca..126cab69fc 100644
--- a/spring-core/src/main/java/org/springframework/util/StringUtils.java
+++ b/spring-core/src/main/java/org/springframework/util/StringUtils.java
@@ -208,7 +208,7 @@ public abstract class StringUtils {
/**
* Trim all whitespace from the given String:
- * leading, trailing, and inbetween characters.
+ * leading, trailing, and in between characters.
* @param str the String to check
* @return the trimmed String
* @see java.lang.Character#isWhitespace
@@ -265,7 +265,7 @@ public abstract class StringUtils {
}
/**
- * Trim all occurences of the supplied leading character from the given String.
+ * Trim all occurrences of the supplied leading character from the given String.
* @param str the String to check
* @param leadingCharacter the leading character to be trimmed
* @return the trimmed String
@@ -282,7 +282,7 @@ public abstract class StringUtils {
}
/**
- * Trim all occurences of the supplied trailing character from the given String.
+ * Trim all occurrences of the supplied trailing character from the given String.
* @param str the String to check
* @param trailingCharacter the trailing character to be trimmed
* @return the trimmed String
@@ -381,7 +381,7 @@ public abstract class StringUtils {
}
/**
- * Replace all occurences of a substring within a string with
+ * Replace all occurrences of a substring within a string with
* another string.
* @param inString String to examine
* @param oldPattern String to replace
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataProvider.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataProvider.java
index 29accf8ffa..efb32f75c0 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataProvider.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataProvider.java
@@ -41,7 +41,7 @@ public interface CallMetaDataProvider {
/**
* Initialize the database specific management of procedure column meta data.
- * This is only called for databases that are supported. This initalization
+ * This is only called for databases that are supported. This initialization
* can be turned off by specifying that column meta data should not be used.
* @param databaseMetaData used to retrieve database specific information
* @param catalogName name of catalog to use or null
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataProviderFactory.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataProviderFactory.java
index 03ef8f9d38..62d5691016 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataProviderFactory.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/CallMetaDataProviderFactory.java
@@ -61,9 +61,9 @@ public class CallMetaDataProviderFactory {
);
/**
- * Create a CallMetaDataProvider based on the database metedata
- * @param dataSource used to retrieve metedata
- * @param context the class that holds configuration and metedata
+ * Create a CallMetaDataProvider based on the database metadata
+ * @param dataSource used to retrieve metadata
+ * @param context the class that holds configuration and metadata
* @return instance of the CallMetaDataProvider implementation to be used
*/
static public CallMetaDataProvider createMetaDataProvider(DataSource dataSource, final CallMetaDataContext context) {
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/GenericTableMetaDataProvider.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/GenericTableMetaDataProvider.java
index f7798d2bc8..adb09f082c 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/GenericTableMetaDataProvider.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/metadata/GenericTableMetaDataProvider.java
@@ -340,7 +340,7 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider {
try {
tables.close();
} catch (SQLException e) {
- logger.warn("Error while closing table meta data reults" + e.getMessage());
+ logger.warn("Error while closing table meta data results" + e.getMessage());
}
}
}
@@ -379,7 +379,7 @@ public class GenericTableMetaDataProvider implements TableMetaDataProvider {
}
/**
- * Method supporting the metedata processing for a table's columns
+ * Method supporting the metadata processing for a table's columns
*/
private void processTableColumns(DatabaseMetaData databaseMetaData, TableMetaData tmd) {
ResultSet tableColumns = null;
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/ParsedSql.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/ParsedSql.java
index f498e6b3fa..c60164afff 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/ParsedSql.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/namedparam/ParsedSql.java
@@ -70,7 +70,7 @@ public class ParsedSql {
/**
* Return all of the parameters (bind variables) in the parsed SQL statement.
- * Repeated occurences of the same parameter name are included here.
+ * Repeated occurrences of the same parameter name are included here.
*/
List getParameterNames() {
return this.parameterNames;
@@ -89,7 +89,7 @@ public class ParsedSql {
/**
* Set the count of named parameters in the SQL statement.
- * Each parameter name counts once; repeated occurences do not count here.
+ * Each parameter name counts once; repeated occurrences do not count here.
*/
void setNamedParameterCount(int namedParameterCount) {
this.namedParameterCount = namedParameterCount;
@@ -97,7 +97,7 @@ public class ParsedSql {
/**
* Return the count of named parameters in the SQL statement.
- * Each parameter name counts once; repeated occurences do not count here.
+ * Each parameter name counts once; repeated occurrences do not count here.
*/
int getNamedParameterCount() {
return this.namedParameterCount;
@@ -119,7 +119,7 @@ public class ParsedSql {
/**
* Set the total count of all of the parameters in the SQL statement.
- * Repeated occurences of the same parameter name do count here.
+ * Repeated occurrences of the same parameter name do count here.
*/
void setTotalParameterCount(int totalParameterCount) {
this.totalParameterCount = totalParameterCount;
@@ -127,7 +127,7 @@ public class ParsedSql {
/**
* Return the total count of all of the parameters in the SQL statement.
- * Repeated occurences of the same parameter name do count here.
+ * Repeated occurrences of the same parameter name do count here.
*/
int getTotalParameterCount() {
return this.totalParameterCount;
diff --git a/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/AbstractJdbcInsert.java b/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/AbstractJdbcInsert.java
index 0ca8ef0e4e..8d4ecd2e7b 100644
--- a/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/AbstractJdbcInsert.java
+++ b/spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/AbstractJdbcInsert.java
@@ -311,7 +311,7 @@ public abstract class AbstractJdbcInsert {
}
/**
- * Method to check whether we are allowd to make any configuration changes at this time.
+ * Method to check whether we are allowed to make any configuration changes at this time.
* If the class has been compiled, then no further changes to the configuration are allowed.
*/
protected void checkIfConfigurationModificationIsAllowed() {
@@ -450,12 +450,12 @@ public abstract class AbstractJdbcInsert {
"The getGeneratedKeys feature is not supported by this database");
}
if (getGeneratedKeyNames().length < 1) {
- throw new InvalidDataAccessApiUsageException("Generated Key Name(s) not specificed. " +
+ throw new InvalidDataAccessApiUsageException("Generated Key Name(s) not specified. " +
"Using the generated keys features requires specifying the name(s) of the generated column(s)");
}
if (getGeneratedKeyNames().length > 1) {
throw new InvalidDataAccessApiUsageException(
- "Current database only supports retreiving the key for a single column. There are " +
+ "Current database only supports retrieving the key for a single column. There are " +
getGeneratedKeyNames().length + " columns specified: " + Arrays.asList(getGeneratedKeyNames()));
}
// This is a hack to be able to get the generated key from a database that doesn't support
@@ -615,9 +615,9 @@ public abstract class AbstractJdbcInsert {
}
/**
- * Match the provided in parameter values with regitered parameters and parameters defined
+ * Match the provided in parameter values with registered parameters and parameters defined
* via metadata processing.
- * @param parameterSource the parameter vakues provided as a {@link SqlParameterSource}
+ * @param parameterSource the parameter values provided as a {@link SqlParameterSource}
* @return Map with parameter names and values
*/
protected List