diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationSorter.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationSorter.java index 98e0f5dcff..01b2354dbf 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationSorter.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationSorter.java @@ -74,27 +74,27 @@ class AutoConfigurationSorter { private List sortByAnnotation(AutoConfigurationClasses classes, List classNames) { - List tosort = new ArrayList(classNames); + List toSort = new ArrayList(classNames); Set sorted = new LinkedHashSet(); Set processing = new LinkedHashSet(); - while (!tosort.isEmpty()) { - doSortByAfterAnnotation(classes, tosort, sorted, processing, null); + while (!toSort.isEmpty()) { + doSortByAfterAnnotation(classes, toSort, sorted, processing, null); } return new ArrayList(sorted); } private void doSortByAfterAnnotation(AutoConfigurationClasses classes, - List tosort, Set sorted, Set processing, + List toSort, Set sorted, Set processing, String current) { if (current == null) { - current = tosort.remove(0); + current = toSort.remove(0); } processing.add(current); for (String after : classes.getClassesRequestedAfter(current)) { Assert.state(!processing.contains(after), "AutoConfigure cycle detected between " + current + " and " + after); - if (!sorted.contains(after) && tosort.contains(after)) { - doSortByAfterAnnotation(classes, tosort, sorted, processing, after); + if (!sorted.contains(after) && toSort.contains(after)) { + doSortByAfterAnnotation(classes, toSort, sorted, processing, after); } } processing.remove(current); diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/JobLauncherCommandLineRunner.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/JobLauncherCommandLineRunner.java index edc549f87a..9d8a29b842 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/JobLauncherCommandLineRunner.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/JobLauncherCommandLineRunner.java @@ -198,7 +198,7 @@ public class JobLauncherCommandLineRunner } execute(job, jobParameters); } - catch (NoSuchJobException nsje) { + catch (NoSuchJobException ex) { logger.debug("No job found in registry for job name: " + jobName); continue; } diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayMigrationInitializer.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayMigrationInitializer.java index 2ac68e3d7d..36611b18ef 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayMigrationInitializer.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayMigrationInitializer.java @@ -48,7 +48,7 @@ public class FlywayMigrationInitializer implements InitializingBean, Ordered { /** * Create a new {@link FlywayMigrationInitializer} instance. * @param flyway the flyway instance - * @param migrationStrategy the migration stragety or {@code null} + * @param migrationStrategy the migration strategy or {@code null} */ public FlywayMigrationInitializer(Flyway flyway, FlywayMigrationStrategy migrationStrategy) { diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/groovy/template/GroovyTemplateAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/groovy/template/GroovyTemplateAutoConfiguration.java index 42e14e7e88..fa1e90db63 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/groovy/template/GroovyTemplateAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/groovy/template/GroovyTemplateAutoConfiguration.java @@ -46,7 +46,7 @@ import org.springframework.web.servlet.view.groovy.GroovyMarkupConfigurer; import org.springframework.web.servlet.view.groovy.GroovyMarkupViewResolver; /** - * Autoconfiguration support for Groovy templates in MVC. By default creates a + * Auto-configuration support for Groovy templates in MVC. By default creates a * {@link MarkupTemplateEngine} configured from {@link GroovyTemplateProperties}, but you * can override that by providing your own {@link GroovyMarkupConfig} or even a * {@link MarkupTemplateEngine} of a different type. diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DatabaseDriver.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DatabaseDriver.java index bc5972d745..5fbbea4500 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DatabaseDriver.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DatabaseDriver.java @@ -75,12 +75,12 @@ enum DatabaseDriver { ORACLE("oracle.jdbc.OracleDriver", "oracle.jdbc.xa.client.OracleXADataSource"), /** - * Postres. + * Postgres. */ POSTGRESQL("org.postgresql.Driver", "org.postgresql.xa.PGXADataSource"), /** - * JTDS. + * jTDS. */ JTDS("net.sourceforge.jtds.jdbc.Driver"), diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/EmbeddedDatabaseConnection.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/EmbeddedDatabaseConnection.java index 9d8012d400..6774bb84e8 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/EmbeddedDatabaseConnection.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/EmbeddedDatabaseConnection.java @@ -118,7 +118,7 @@ public enum EmbeddedDatabaseConnection { * database type. * * @param dataSource the data source to interrogate - * @return true if the data sourceis one of the embedded types + * @return true if the data source is one of the embedded types */ public static boolean isEmbedded(DataSource dataSource) { try { diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/metadata/DataSourcePoolMetadata.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/metadata/DataSourcePoolMetadata.java index 6ebe304caa..d356461247 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/metadata/DataSourcePoolMetadata.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/metadata/DataSourcePoolMetadata.java @@ -19,7 +19,7 @@ package org.springframework.boot.autoconfigure.jdbc.metadata; import javax.sql.DataSource; /** - * Provides access meta-data that is commonly available from most polled + * Provides access meta-data that is commonly available from most pooled * {@link DataSource} implementations. * * @author Stephane Nicoll diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/metadata/DataSourcePoolMetadataProviders.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/metadata/DataSourcePoolMetadataProviders.java index cdff451358..73164134bf 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/metadata/DataSourcePoolMetadataProviders.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/metadata/DataSourcePoolMetadataProviders.java @@ -37,7 +37,7 @@ public class DataSourcePoolMetadataProviders implements DataSourcePoolMetadataPr /** * Create a {@link DataSourcePoolMetadataProviders} instance with an initial * collection of delegates to use. - * @param providers the data source pool metdata providers + * @param providers the data source pool metadata providers */ public DataSourcePoolMetadataProviders( Collection providers) { diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisEmbeddedConfigurationFactory.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisEmbeddedConfigurationFactory.java index 6c5507335c..8e2c8dbc1c 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisEmbeddedConfigurationFactory.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisEmbeddedConfigurationFactory.java @@ -30,7 +30,7 @@ import org.apache.commons.logging.LogFactory; * Configuration used to create the embedded Artemis server. * * @author Eddú Meléndez - * @author Stephane Nicol + * @author Stephane Nicoll * @author Phillip Webb */ class ArtemisEmbeddedConfigurationFactory { diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQEmbeddedConfigurationFactory.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQEmbeddedConfigurationFactory.java index 45a2f6dedf..618a0a5e3a 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQEmbeddedConfigurationFactory.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQEmbeddedConfigurationFactory.java @@ -31,7 +31,7 @@ import org.springframework.boot.autoconfigure.jms.hornetq.HornetQProperties.Embe /** * Factory class to create a HornetQ {@link Configuration} from {@link HornetQProperties}. * - * @author Stephane Nicol + * @author Stephane Nicoll * @author Phillip Webb * @since 1.1.0 */ diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.java index e12c38f12f..c95df96277 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.java @@ -114,7 +114,7 @@ public class HibernateJpaAutoConfiguration extends JpaBaseConfiguration { if (jtaTransactionManager != null) { if (runningOnWebSphere()) { // We can never use SpringJtaPlatform on WebSphere as - // WebSphereUowTransactionManger has a null TransactionManager + // WebSphereUowTransactionManager has a null TransactionManager // which will cause Hibernate to NPE configureWebSphereTransactionPlatform(vendorProperties); } diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/package-info.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/package-info.java index 41f558e88b..63444e97db 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/package-info.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/transaction/package-info.java @@ -15,6 +15,6 @@ */ /** - * Auto-configuration for transaction suport. + * Auto-configuration for transaction support. */ package org.springframework.boot.autoconfigure.transaction; diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/websocket/WebSocketContainerCustomizer.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/websocket/WebSocketContainerCustomizer.java index 9ff0fc4251..9611467122 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/websocket/WebSocketContainerCustomizer.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/websocket/WebSocketContainerCustomizer.java @@ -30,7 +30,7 @@ import org.springframework.core.ResolvableType; * {@link EmbeddedServletContainerCustomizer} to configure websockets for a given * {@link EmbeddedServletContainerFactory}. * - * @param the embded servlet container factory + * @param the embedded servlet container factory * @author Dave Syer * @author Phillip Webb * @author Andy Wilkinson diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/dao/PersistenceExceptionTranslationAutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/dao/PersistenceExceptionTranslationAutoConfigurationTests.java index be8dfb8f69..cb233bfdd9 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/dao/PersistenceExceptionTranslationAutoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/dao/PersistenceExceptionTranslationAutoConfigurationTests.java @@ -107,14 +107,14 @@ public class PersistenceExceptionTranslationAutoConfigurationTests { @Repository private static class TestRepository { - private final EntityManager entityManger; + private final EntityManager entityManager; TestRepository(EntityManager entityManager) { - this.entityManger = entityManager; + this.entityManager = entityManager; } public void doSomething() { - this.entityManger.persist(null); + this.entityManager.persist(null); } } diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisAutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisAutoConfigurationTests.java index dd02fe2715..1f82090eab 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisAutoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisAutoConfigurationTests.java @@ -142,7 +142,7 @@ public class ArtemisAutoConfigurationTests { } @Test - public void embeddedConnectionFactorEvenIfEmbeddedServiceDisabled() { + public void embeddedConnectionFactoryEvenIfEmbeddedServiceDisabled() { // No mode is specified load(EmptyConfiguration.class, "spring.artemis.mode:embedded", "spring.artemis.embedded.enabled:false"); diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisEmbeddedConfigurationFactoryTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisEmbeddedConfigurationFactoryTests.java index 81320f36de..c4d5cd170f 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisEmbeddedConfigurationFactoryTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisEmbeddedConfigurationFactoryTests.java @@ -29,7 +29,7 @@ import static org.junit.Assert.assertThat; * Tests for {@link ArtemisEmbeddedConfigurationFactory} * * @author Eddú Meléndez - * @author Stephane Nicol + * @author Stephane Nicoll * @author Phillip Webb */ public class ArtemisEmbeddedConfigurationFactoryTests { diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQAutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQAutoConfigurationTests.java index b509a38cbe..cb39d3540c 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQAutoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQAutoConfigurationTests.java @@ -146,7 +146,7 @@ public class HornetQAutoConfigurationTests { } @Test - public void embeddedConnectionFactorEvenIfEmbeddedServiceDisabled() { + public void embeddedConnectionFactoryEvenIfEmbeddedServiceDisabled() { // No mode is specified load(EmptyConfiguration.class, "spring.hornetq.mode:embedded", "spring.hornetq.embedded.enabled:false"); diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQEmbeddedConfigurationFactoryTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQEmbeddedConfigurationFactoryTests.java index 342cf56da4..bf3913af55 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQEmbeddedConfigurationFactoryTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQEmbeddedConfigurationFactoryTests.java @@ -28,7 +28,7 @@ import static org.junit.Assert.assertThat; /** * Tests for {@link HornetQEmbeddedConfigurationFactory}. * - * @author Stephane Nicol + * @author Stephane Nicoll * @author Phillip Webb */ public class HornetQEmbeddedConfigurationFactoryTests { @@ -55,7 +55,7 @@ public class HornetQEmbeddedConfigurationFactoryTests { } @Test - public void generatedClusterPassoword() throws Exception { + public void generatedClusterPassword() throws Exception { HornetQProperties properties = new HornetQProperties(); Configuration configuration = new HornetQEmbeddedConfigurationFactory(properties) .createConfiguration(); @@ -63,7 +63,7 @@ public class HornetQEmbeddedConfigurationFactoryTests { } @Test - public void specificClusterPassoword() throws Exception { + public void specificClusterPassword() throws Exception { HornetQProperties properties = new HornetQProperties(); properties.getEmbedded().setClusterPassword("password"); Configuration configuration = new HornetQEmbeddedConfigurationFactory(properties) diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/MultipartAutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/MultipartAutoConfigurationTests.java index c80ab46bfb..fd4ca2638a 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/MultipartAutoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/MultipartAutoConfigurationTests.java @@ -181,9 +181,9 @@ public class MultipartAutoConfigurationTests { private void testContainerWithCustomMultipartConfigEnabledSetting( final String propertyValue, int expectedNumberOfMultipartConfigElementBeans) { this.context = new AnnotationConfigEmbeddedWebApplicationContext(); - Map poperties = new LinkedHashMap(); - poperties.put("multipart.enabled", propertyValue); - MapPropertySource propertySource = new MapPropertySource("test", poperties); + Map properties = new LinkedHashMap(); + properties.put("multipart.enabled", propertyValue); + MapPropertySource propertySource = new MapPropertySource("test", properties); this.context.getEnvironment().getPropertySources().addFirst(propertySource); this.context.register(ContainerWithNoMultipartTomcat.class, BaseConfiguration.class); diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/DependencyFilter.java b/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/DependencyFilter.java index f97f938d99..4b6a037266 100644 --- a/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/DependencyFilter.java +++ b/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/DependencyFilter.java @@ -28,7 +28,7 @@ import org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter; /** * Base class for {@link ArtifactsFilter} based on a {@link FilterableDependency} list. * - * @author Stephane Nicol + * @author Stephane Nicoll * @author David Turanski * @since 1.2 */