diff --git a/buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/Upgrade.java b/buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/Upgrade.java index e0457fe8f4f5..a7778d55264d 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/Upgrade.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/Upgrade.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 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. @@ -20,7 +20,7 @@ import org.springframework.boot.build.bom.bomr.version.DependencyVersion; /** - * An upgrade to change a {@link Library} to use a new version}. + * An upgrade to change a {@link Library} to use a new version. * * @author Andy Wilkinson */ diff --git a/buildSrc/src/main/java/org/springframework/boot/build/testing/TestResultsOverview.java b/buildSrc/src/main/java/org/springframework/boot/build/testing/TestResultsOverview.java index 8c2487f31116..545e8c908632 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/testing/TestResultsOverview.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/testing/TestResultsOverview.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 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. @@ -29,8 +29,7 @@ import org.gradle.tooling.events.OperationCompletionListener; /** - * {@link BuildService} that provides an overview of all of the test failures in the - * build. + * {@link BuildService} that provides an overview of all the test failures in the build. * * @author Andy Wilkinson */ diff --git a/buildSrc/src/test/java/org/springframework/boot/build/bom/bomr/version/DependencyVersionTests.java b/buildSrc/src/test/java/org/springframework/boot/build/bom/bomr/version/DependencyVersionTests.java index c8852b9e08be..c8a74d0bf453 100644 --- a/buildSrc/src/test/java/org/springframework/boot/build/bom/bomr/version/DependencyVersionTests.java +++ b/buildSrc/src/test/java/org/springframework/boot/build/bom/bomr/version/DependencyVersionTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 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. @@ -53,12 +53,12 @@ void parseWhenVersionWithCombinedPatchAndQualifierShouldReturnCombinedPatchAndQu } @Test - void parseWhenCalendarVersionShouldReturnArticatVersionDependencyVersion() { + void parseWhenCalendarVersionShouldReturnArtifactVersionDependencyVersion() { assertThat(DependencyVersion.parse("2020.0.0")).isInstanceOf(CalendarVersionDependencyVersion.class); } @Test - void parseWhenCalendarVersionWithModifierShouldReturnArticatVersionDependencyVersion() { + void parseWhenCalendarVersionWithModifierShouldReturnArtifactVersionDependencyVersion() { assertThat(DependencyVersion.parse("2020.0.0-M1")).isInstanceOf(CalendarVersionDependencyVersion.class); } diff --git a/buildSrc/src/test/resources/plugin.xml b/buildSrc/src/test/resources/plugin.xml index 8e21135e719e..bf2a6c92d2fb 100644 --- a/buildSrc/src/test/resources/plugin.xml +++ b/buildSrc/src/test/resources/plugin.xml @@ -805,7 +805,7 @@ required to use this feature. long false true - The number of milli-seconds to wait between each attempt to check if the spring + The number of milliseconds to wait between each attempt to check if the spring application is ready. @@ -880,7 +880,7 @@ application. int false true - The port to use to lookup the platform MBeanServer if the application has been + The port to use to look up the platform MBeanServer if the application has been forked. diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/ConditionalOnEnabledHealthIndicator.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/ConditionalOnEnabledHealthIndicator.java index c3e5b8beef80..2407ecfd1c47 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/ConditionalOnEnabledHealthIndicator.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/ConditionalOnEnabledHealthIndicator.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2019 the original author or authors. + * Copyright 2012-2022 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. @@ -25,9 +25,9 @@ import org.springframework.context.annotation.Conditional; /** - * {@link Conditional @Conditional} that checks whether or not a default health indicator - * is enabled. Matches if the value of the {@code management.health..enabled} - * property is {@code true}. Otherwise, matches if the value of the + * {@link Conditional @Conditional} that checks whether a default health indicator is + * enabled. Matches if the value of the {@code management.health..enabled} property + * is {@code true}. Otherwise, matches if the value of the * {@code management.health.defaults.enabled} property is {@code true} or if it is not * configured. * diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/HealthProperties.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/HealthProperties.java index 8603f79aa55e..c91ca70b101c 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/HealthProperties.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/health/HealthProperties.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 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. @@ -44,8 +44,8 @@ public abstract class HealthProperties { private Show showComponents; /** - * Roles used to determine whether or not a user is authorized to be shown details. - * When empty, all authenticated users are authorized. + * Roles used to determine whether a user is authorized to be shown details. When + * empty, all authenticated users are authorized. */ private Set roles = new HashSet<>(); diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/info/ConditionalOnEnabledInfoContributor.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/info/ConditionalOnEnabledInfoContributor.java index bc0ddc8a79c3..4cebbddfe862 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/info/ConditionalOnEnabledInfoContributor.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/info/ConditionalOnEnabledInfoContributor.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 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. @@ -25,8 +25,8 @@ import org.springframework.context.annotation.Conditional; /** - * {@link Conditional @Conditional} that checks whether or not an info contributor is - * enabled. Matches if the value of the {@code management.info..enabled} property is + * {@link Conditional @Conditional} that checks whether an info contributor is enabled. + * Matches if the value of the {@code management.info..enabled} property is * {@code true}. Otherwise, use the specific {@link #fallback() fallback} method. * * @author Stephane Nicoll diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/ConditionalOnEnabledMetricsExport.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/ConditionalOnEnabledMetricsExport.java index 041f3db2fcfb..679d9eb16414 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/ConditionalOnEnabledMetricsExport.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/ConditionalOnEnabledMetricsExport.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 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. @@ -25,11 +25,11 @@ import org.springframework.context.annotation.Conditional; /** - * {@link Conditional @Conditional} that checks whether or not a metrics exporter is - * enabled. If the {@code management.metrics.export..enabled} property is configured - * then its value is used to determine if it matches. Otherwise, matches if the value of - * the {@code management.metrics.export.defaults.enabled} property is {@code true} or if - * it is not configured. + * {@link Conditional @Conditional} that checks whether a metrics exporter is enabled. If + * the {@code management.metrics.export..enabled} property is configured then its + * value is used to determine if it matches. Otherwise, matches if the value of the + * {@code management.metrics.export.defaults.enabled} property is {@code true} or if it is + * not configured. * * @author Chris Bono * @since 2.4.0 diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/ganglia/GangliaProperties.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/ganglia/GangliaProperties.java index 224d581182e9..bc4cdce1e058 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/ganglia/GangliaProperties.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/ganglia/GangliaProperties.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 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. @@ -66,7 +66,7 @@ public class GangliaProperties { private GMetric.UDPAddressingMode addressingMode = GMetric.UDPAddressingMode.MULTICAST; /** - * Time to live for metrics on Ganglia. Set the multi-cast Time-To-Live to be one + * Time to live for metrics on Ganglia. Set the multicast Time-To-Live to be one * greater than the number of hops (routers) between the hosts. */ private Integer timeToLive = 1; diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/InvocationContext.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/InvocationContext.java index 3686d592de40..3369570c391e 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/InvocationContext.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/InvocationContext.java @@ -89,7 +89,7 @@ public T resolveArgument(Class argumentType) { } /** - * Returns whether or not the context is capable of resolving an argument of the given + * Returns whether the context is capable of resolving an argument of the given * {@code type}. Note that, even when {@code true} is returned, * {@link #resolveArgument argument resolution} will return {@code null} if no * argument of the required type is available. diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Producible.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Producible.java index 32bdf8927f39..25be8e527d99 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Producible.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Producible.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 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. @@ -49,9 +49,9 @@ public interface Producible & Producible> { /** * Return if this enum value should be used as the default value when an accept header - * of */* is provided, or if the accept header is missing. Only one value - * can be marked as default. If no value is marked, then the value with the highest - * {@link Enum#ordinal() ordinal} is used as the default. + * of */* is provided, or if the {@code Accept} header is missing. Only + * one value can be marked as default. If no value is marked, then the value with the + * highest {@link Enum#ordinal() ordinal} is used as the default. * @return if this value should be used as the default value * @since 2.5.6 */ diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/Link.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/Link.java index e4d5000b1504..f0e1b9bcb366 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/Link.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/web/Link.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2019 the original author or authors. + * Copyright 2012-2022 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. @@ -52,7 +52,7 @@ public String getHref() { } /** - * Returns whether or not the {@link #getHref() href} is templated. + * Returns whether the {@link #getHref() href} is templated. * @return {@code true} if the href is templated, otherwise {@code false} */ public boolean isTemplated() { diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/ReactiveHealthIndicator.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/ReactiveHealthIndicator.java index 03ee4000cbda..e04c6083a78e 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/ReactiveHealthIndicator.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/ReactiveHealthIndicator.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2019 the original author or authors. + * Copyright 2012-2022 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. @@ -22,7 +22,7 @@ * Strategy interface used to contribute {@link Health} to the results returned from the * reactive variant of the {@link HealthEndpoint}. *

- * This is non blocking contract that is meant to be used in a reactive application. See + * This is non-blocking contract that is meant to be used in a reactive application. See * {@link HealthIndicator} for the traditional contract. * * @author Stephane Nicoll diff --git a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/startup/StartupTimeMetricsListenerTests.java b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/startup/StartupTimeMetricsListenerTests.java index 950393181e63..19a435860d30 100644 --- a/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/startup/StartupTimeMetricsListenerTests.java +++ b/spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/startup/StartupTimeMetricsListenerTests.java @@ -84,9 +84,9 @@ void metricRecordedWithoutMainAppClassTagAndAdditionalTags() { Tags tags = Tags.of("foo", "bar"); this.listener = new StartupTimeMetricsListener(this.registry, "started", "ready", tags); this.listener.onApplicationEvent(new ApplicationReadyEvent(application, null, null, Duration.ofSeconds(2))); - TimeGauge applicationReadyGague = this.registry.find("ready").timeGauge(); - assertThat(applicationReadyGague).isNotNull(); - assertThat(applicationReadyGague.getId().getTags()).containsExactlyElementsOf(tags); + TimeGauge applicationReadyGauge = this.registry.find("ready").timeGauge(); + assertThat(applicationReadyGauge).isNotNull(); + assertThat(applicationReadyGauge.getId().getTags()).containsExactlyElementsOf(tags); } @Test diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnBean.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnBean.java index 7d5ca163a162..f136d0b1a0bf 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnBean.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnBean.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 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. @@ -80,14 +80,13 @@ /** * The annotation type decorating a bean that should be checked. The condition matches - * when all of the annotations specified are defined on beans in the - * {@link BeanFactory}. + * when all the annotations specified are defined on beans in the {@link BeanFactory}. * @return the class-level annotation types to check */ Class[] annotation() default {}; /** - * The names of beans to check. The condition matches when all of the bean names + * The names of beans to check. The condition matches when all the bean names * specified are contained in the {@link BeanFactory}. * @return the names of beans to check */ diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayProperties.java index 4dbe4d11193f..9c8663e32e60 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/flyway/FlywayProperties.java @@ -343,7 +343,7 @@ public class FlywayProperties { private String oracleKerberosCacheFile; /** - * Location of the Oracle Wallet, used to sign-in to the database automatically. + * Location of the Oracle Wallet, used to sign in to the database automatically. * Requires Flyway Teams. */ private String oracleWalletLocation; diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java index 0f80b9336c9f..65fd1575f629 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/KafkaProperties.java @@ -702,7 +702,7 @@ public static class Streams { private String applicationId; /** - * Whether or not to auto-start the streams factory bean. + * Whether to auto-start the streams factory bean. */ private boolean autoStartup = true; diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/JpaBaseConfiguration.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/JpaBaseConfiguration.java index 8526773988cf..26600544e6e2 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/JpaBaseConfiguration.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/JpaBaseConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 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. @@ -140,7 +140,7 @@ public LocalContainerEntityManagerFactoryBean entityManagerFactory(EntityManager protected abstract Map getVendorProperties(); /** - * Customize vendor properties before they are used. Allows for post processing (for + * Customize vendor properties before they are used. Allows for post-processing (for * example to configure JTA specific settings). * @param vendorProperties the vendor properties to customize */ diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ConditionalOnEnabledResourceChain.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ConditionalOnEnabledResourceChain.java index f2637f533488..3a3467b5e6d4 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ConditionalOnEnabledResourceChain.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ConditionalOnEnabledResourceChain.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 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. @@ -25,10 +25,9 @@ import org.springframework.context.annotation.Conditional; /** - * {@link Conditional @Conditional} that checks whether or not the Spring resource - * handling chain is enabled. Matches if - * {@link WebProperties.Resources.Chain#getEnabled()} is {@code true} or if - * {@code webjars-locator-core} is on the classpath. + * {@link Conditional @Conditional} that checks whether the Spring resource handling chain + * is enabled. Matches if {@link WebProperties.Resources.Chain#getEnabled()} is + * {@code true} or if {@code webjars-locator-core} is on the classpath. * * @author Stephane Nicoll * @since 1.3.0 diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/OnEnabledResourceChainCondition.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/OnEnabledResourceChainCondition.java index 65d3564fcc61..c4ce3b4ea992 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/OnEnabledResourceChainCondition.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/OnEnabledResourceChainCondition.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 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. @@ -27,8 +27,7 @@ import org.springframework.util.ClassUtils; /** - * {@link Condition} that checks whether or not the Spring resource handling chain is - * enabled. + * {@link Condition} that checks whether the Spring resource handling chain is enabled. * * @author Stephane Nicoll * @author Phillip Webb diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationTests.java index 6903ff4ca149..53da5280903e 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/neo4j/Neo4jAutoConfigurationTests.java @@ -141,7 +141,7 @@ void determineServerUriWithDeprecatedPropertyShouldOverrideDefault() { @Test @Deprecated - void determineServerUriWithCustoUriShouldTakePrecedenceOverDeprecatedProperty() { + void determineServerUriWithCustomUriShouldTakePrecedenceOverDeprecatedProperty() { URI customUri = URI.create("bolt://localhost:4242"); URI anotherCustomURI = URI.create("bolt://localhost:2424"); Neo4jProperties properties = new Neo4jProperties(); diff --git a/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerationRequest.java b/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerationRequest.java index f6751f77422b..89cb108078e3 100644 --- a/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerationRequest.java +++ b/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerationRequest.java @@ -105,9 +105,8 @@ void setOutput(String output) { } /** - * Whether or not the project archive should be extracted in the output location. If - * the {@link #getOutput() output} ends with "/", the project is extracted - * automatically. + * Whether the project archive should be extracted in the output location. If the + * {@link #getOutput() output} ends with "/", the project is extracted automatically. * @return {@code true} if the archive should be extracted, otherwise {@code false} */ boolean isExtract() { @@ -242,7 +241,7 @@ void setFormat(String format) { } /** - * Whether or not the type should be detected based on the build and format value. + * Whether the type should be detected based on the build and format value. * @return {@code true} if type detection will be performed, otherwise {@code false} */ boolean isDetectType() { diff --git a/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/run/SpringApplicationRunner.java b/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/run/SpringApplicationRunner.java index 8444ab694c80..bc9d31b98e5d 100644 --- a/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/run/SpringApplicationRunner.java +++ b/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/run/SpringApplicationRunner.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2019 the original author or authors. + * Copyright 2012-2022 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. @@ -96,7 +96,7 @@ public void compileAndRun() throws Exception { stop(); Class[] compiledSources = compile(); monitorForChanges(); - // Run in new thread to ensure that the context classloader is setup + // Run in new thread to ensure that the context classloader is set up this.runThread = new RunThread(compiledSources); this.runThread.start(); this.runThread.join(); diff --git a/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/AstUtils.java b/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/AstUtils.java index 6b9e22195748..6d4168d549c4 100644 --- a/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/AstUtils.java +++ b/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/AstUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2019 the original author or authors. + * Copyright 2012-2022 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. @@ -143,7 +143,7 @@ public static boolean hasAtLeastOneInterface(ClassNode classNode, String... type * optionally removing it from the block at the same time. * @param block a block statement (class definition) * @param name the name to look for - * @param remove whether or not the extracted closure should be removed + * @param remove whether the extracted closure should be removed * @return a beans Closure if one can be found, null otherwise */ public static ClosureExpression getClosure(BlockStatement block, String name, boolean remove) { diff --git a/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyCustomizer.java b/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyCustomizer.java index 982b7ad83488..2b2068c54c14 100644 --- a/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyCustomizer.java +++ b/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyCustomizer.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 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. @@ -105,8 +105,8 @@ protected boolean canAdd() { } /** - * Create a nested {@link DependencyCustomizer} that only applies if all of the - * specified class names are not on the class path. + * Create a nested {@link DependencyCustomizer} that only applies if all the specified + * class names are not on the class path. * @param classNames the class names to test * @return a nested {@link DependencyCustomizer} */ diff --git a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java index 28fff62bc547..a7830a50c5fd 100644 --- a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java +++ b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java @@ -327,7 +327,7 @@ private void cleanupCaches() { } private void cleanupKnownCaches() { - // Whilst not strictly necessary it helps to cleanup soft reference caches + // Whilst not strictly necessary it helps to clean up soft reference caches // early rather than waiting for memory limits to be reached ResolvableType.clearCache(); cleanCachedIntrospectionResultsCache(); diff --git a/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/server/RestartServerTests.java b/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/server/RestartServerTests.java index 3209d41fc162..2f48b2f3f77d 100644 --- a/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/server/RestartServerTests.java +++ b/spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/server/RestartServerTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 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. @@ -89,7 +89,7 @@ void updateSetsJarLastModified(@TempDir File directory) throws Exception { @Test void updateReplacesLocalFilesWhenPossible(@TempDir File directory) throws Exception { // This is critical for Cloud Foundry support where the application is - // run exploded and resources can be found from the servlet root (outside of the + // run exploded and resources can be found from the servlet root (outside the // classloader) File classFile = new File(directory, "ClassA.class"); FileCopyUtils.copy("abc".getBytes(), classFile); diff --git a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/system/OutputCaptureRule.java b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/system/OutputCaptureRule.java index 50536bfa0e3b..308e876b983f 100644 --- a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/system/OutputCaptureRule.java +++ b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/system/OutputCaptureRule.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 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. @@ -29,7 +29,7 @@ import static org.hamcrest.Matchers.allOf; /** - * JUnit {@code @Rule} to capture output from System.out and System.err. + * JUnit {@code @Rule} to capture output from {@code System.out} and {@code System.err}. *

* To use add as a {@link Rule @Rule}: * diff --git a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client/TestRestTemplate.java b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client/TestRestTemplate.java index 15193399bb99..6b4acc454f37 100644 --- a/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client/TestRestTemplate.java +++ b/spring-boot-project/spring-boot-test/src/main/java/org/springframework/boot/test/web/client/TestRestTemplate.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 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. @@ -56,7 +56,7 @@ /** * Convenient alternative of {@link RestTemplate} that is suitable for integration tests. - * {@code TestRestTemplate} is fault tolerant. This means that 4xx and 5xx do not result + * {@code TestRestTemplate} is fault-tolerant. This means that 4xx and 5xx do not result * in an exception being thrown and can instead be detected via the {@link ResponseEntity * response entity} and its {@link ResponseEntity#getStatusCode() status code}. *

@@ -641,12 +641,12 @@ public void delete(URI url) { } /** - * Return the value of the Allow header for the given URI. + * Return the value of the {@code Allow} header for the given URI. *

* URI Template variables are expanded using the given URI variables, if any. * @param url the URL * @param urlVariables the variables to expand in the template - * @return the value of the allow header + * @return the value of the {@code Allow} header * @see RestTemplate#optionsForAllow(java.lang.String, java.lang.Object[]) */ public Set optionsForAllow(String url, Object... urlVariables) { @@ -654,12 +654,12 @@ public Set optionsForAllow(String url, Object... urlVariables) { } /** - * Return the value of the Allow header for the given URI. + * Return the value of the {@code Allow} header for the given URI. *

* URI Template variables are expanded using the given map. * @param url the URL * @param urlVariables the variables to expand in the template - * @return the value of the allow header + * @return the value of the {@code Allow} header * @see RestTemplate#optionsForAllow(java.lang.String, java.util.Map) */ public Set optionsForAllow(String url, Map urlVariables) { @@ -667,9 +667,9 @@ public Set optionsForAllow(String url, Map urlVariables) } /** - * Return the value of the Allow header for the given URL. + * Return the value of the {@code Allow} header for the given URL. * @param url the URL - * @return the value of the allow header + * @return the value of the {@code Allow} header * @see RestTemplate#optionsForAllow(java.net.URI) */ public Set optionsForAllow(URI url) { diff --git a/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/ImageArchive.java b/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/ImageArchive.java index 00383b5a4c2f..dce9126235ad 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/ImageArchive.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/ImageArchive.java @@ -100,7 +100,7 @@ public ImageConfig getImageConfig() { } /** - * Return the create data of the archive. + * Return the create date of the archive. * @return the create date */ public Instant getCreateDate() { diff --git a/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/VolumeName.java b/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/VolumeName.java index 8a01d88a1832..9cd51592ed81 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/VolumeName.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/docker/type/VolumeName.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 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. @@ -72,7 +72,7 @@ public static VolumeName random(String prefix) { * Factory method to create a new {@link VolumeName} with a random name. * @param prefix the prefix to use with the random name * @param randomLength the number of chars in the random part of the name - * @return a randomly volume reference + * @return a randomly named volume reference */ public static VolumeName random(String prefix, int randomLength) { return of(RandomString.generate(prefix, randomLength)); diff --git a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONArray.java b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONArray.java index ebd63c4be025..99c511328c5d 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONArray.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONArray.java @@ -632,13 +632,13 @@ public String toString() { } /** - * Encodes this array as a human readable JSON string for debugging, such as:

+	 * Encodes this array as a human-readable JSON string for debugging, such as: 
 	 * [
 	 *     94043,
 	 *     90210
 	 * ]
* @param indentSpaces the number of spaces to indent for each level of nesting. - * @return a human readable JSON string of this array + * @return a human-readable JSON string of this array * @throws JSONException if processing of json failed */ public String toString(int indentSpaces) throws JSONException { diff --git a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONObject.java b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONObject.java index b7a34606bb65..3f100dc48461 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONObject.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONObject.java @@ -708,7 +708,7 @@ public String toString() { } /** - * Encodes this object as a human readable JSON string for debugging, such as:
+	 * Encodes this object as a human-readable JSON string for debugging, such as: 
 	 * {
 	 *     "query": "Pizza",
 	 *     "locations": [
diff --git a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONStringer.java b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONStringer.java
index 8292d1aa5ec2..3e62a220c7ca 100644
--- a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONStringer.java
+++ b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONStringer.java
@@ -64,7 +64,7 @@ public class JSONStringer {
 
 	/**
 	 * Lexical scoping elements within this stringer, necessary to insert the appropriate
-	 * separator characters (ie. commas and colons) and to detect nesting errors.
+	 * separator characters (i.e. commas and colons) and to detect nesting errors.
 	 */
 	enum Scope {
 
diff --git a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONTokener.java b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONTokener.java
index d9f12984bf41..e55281c70681 100644
--- a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONTokener.java
+++ b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/json-shade/java/org/springframework/boot/configurationprocessor/json/JSONTokener.java
@@ -34,7 +34,7 @@
  * 

* For best interoperability and performance use JSON that complies with RFC 4627, such as * that generated by {@link JSONStringer}. For legacy reasons this parser is lenient, so a - * successful parse does not indicate that the input string was valid JSON. All of the + * successful parse does not indicate that the input string was valid JSON. All the * following syntax errors will be ignored: *

    *
  • End of line comments starting with {@code //} or {@code #} and ending with a diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/AbstractJarWriter.java b/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/AbstractJarWriter.java index 1be7254e1482..340c9e1f9ffd 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/AbstractJarWriter.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/AbstractJarWriter.java @@ -375,8 +375,8 @@ interface EntryTransformer { } /** - * An {@code UnpackHandler} determines whether or not unpacking is required and - * provides a SHA1 hash if required. + * An {@code UnpackHandler} determines whether unpacking is required and provides a + * SHA-1 hash if required. */ interface UnpackHandler { diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Digest.java b/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Digest.java index 4da1899b0964..8cae96a24d89 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Digest.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Digest.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 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. @@ -32,9 +32,9 @@ private Digest() { } /** - * Return the SHA1 digest from the supplied stream. + * Return the SHA-1 digest from the supplied stream. * @param supplier the stream supplier - * @return the SHA1 digest + * @return the SHA-1 digest * @throws IOException on IO error */ static String sha1(InputStreamSupplier supplier) throws IOException { diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/FileUtils.java b/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/FileUtils.java index d68f077aae42..ecfded739077 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/FileUtils.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/FileUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 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. @@ -52,7 +52,7 @@ public static void removeDuplicatesFromOutputDirectory(File outputDirectory, Fil } /** - * Generate a SHA.1 Hash for a given file. + * Generate a SHA-1 Hash for a given file. * @param file the file to hash * @return the hash value as a String * @throws IOException if the file cannot be read diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Packager.java b/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Packager.java index 05baa33f847c..f03d740d444d 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Packager.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Packager.java @@ -163,8 +163,8 @@ public void setLayers(Layers layers) { } /** - * Sets the {@link File} to use to backup the original source. - * @param backupFile the file to use to backup the original source + * Sets the {@link File} to use to back up the original source. + * @param backupFile the file to use to back up the original source */ protected void setBackupFile(File backupFile) { this.backupFile = backupFile; @@ -320,8 +320,8 @@ protected String findMainMethod(JarFile source) throws IOException { } /** - * Return the {@link File} to use to backup the original source. - * @return the file to use to backup the original source + * Return the {@link File} to use to back up the original source. + * @return the file to use to back up the original source */ public final File getBackupFile() { if (this.backupFile != null) { diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/ExecutableArchiveLauncher.java b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/ExecutableArchiveLauncher.java index a42e80526d71..91b84b1140de 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/ExecutableArchiveLauncher.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/ExecutableArchiveLauncher.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 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. @@ -165,7 +165,7 @@ protected boolean isSearchCandidate(Archive.Entry entry) { protected abstract boolean isNestedArchive(Archive.Entry entry); /** - * Return if post processing needs to be applied to the archives. For back + * Return if post-processing needs to be applied to the archives. For back * compatibility this method returns {@code true}, but subclasses that don't override * {@link #postProcessClassPathArchives(List)} should provide an implementation that * returns {@code false}. @@ -180,7 +180,7 @@ protected boolean isPostProcessingClassPathArchives() { * Called to post-process archive entries before they are used. Implementations can * add and remove entries. * @param archives the archives - * @throws Exception if the post processing fails + * @throws Exception if the post-processing fails * @see #isPostProcessingClassPathArchives() */ protected void postProcessClassPathArchives(List archives) throws Exception { diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java index a84c01139ebb..a9390eb60bb3 100755 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 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. @@ -127,7 +127,7 @@ public class PropertiesLauncher extends Launcher { public static final String CONFIG_LOCATION = "loader.config.location"; /** - * Properties key for boolean flag (default false) which if set will cause the + * Properties key for boolean flag (default false) which, if set, will cause the * external configuration properties to be copied to System properties (assuming that * is allowed by Java security). */ diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/BuildImageMojo.java b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/BuildImageMojo.java index fa8ef92529bb..c70ef3e8d47f 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/BuildImageMojo.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/BuildImageMojo.java @@ -281,8 +281,8 @@ private File getArchiveFile() { } /** - * Return the {@link File} to use to backup the original source. - * @return the file to use to backup the original source + * Return the {@link File} to use to back up the original source. + * @return the file to use to back up the original source */ private File getBackupFile() { Artifact source = getSourceArtifact(null); diff --git a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StopMojo.java b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StopMojo.java index 3b23f953cbc6..6a3c0ea01de0 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StopMojo.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StopMojo.java @@ -68,7 +68,7 @@ public class StopMojo extends AbstractMojo { private String jmxName; /** - * The port to use to lookup the platform MBeanServer if the application has been + * The port to use to look up the platform MBeanServer if the application has been * forked. */ @Parameter(defaultValue = "9001") diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/DefaultPropertiesPropertySource.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/DefaultPropertiesPropertySource.java index c7c47a115080..857fc8daaf29 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/DefaultPropertiesPropertySource.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/DefaultPropertiesPropertySource.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 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. @@ -61,8 +61,8 @@ public static boolean hasMatchingName(PropertySource propertySource) { } /** - * Create a consume a new {@link DefaultPropertiesPropertySource} instance if the - * provided source is not empty. + * Create a new {@link DefaultPropertiesPropertySource} instance if the provided + * source is not empty. * @param source the {@code Map} source * @param action the action used to consume the * {@link DefaultPropertiesPropertySource} diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java index 2b08f2bae305..f570df3bb6a3 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java @@ -147,8 +147,8 @@ public SpringApplication application() { /** * Create an application context (and its parent if specified) with the command line - * args provided. The parent is run first with the same arguments if has not yet been - * started. + * args provided. The parent is run first with the same arguments if it has not yet + * been started. * @param args the command line arguments * @return an application context created from the current state */ diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/cloud/CloudFoundryVcapEnvironmentPostProcessor.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/cloud/CloudFoundryVcapEnvironmentPostProcessor.java index a2ce0a443bf5..c5ca91ebb0de 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/cloud/CloudFoundryVcapEnvironmentPostProcessor.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/cloud/CloudFoundryVcapEnvironmentPostProcessor.java @@ -96,7 +96,7 @@ public class CloudFoundryVcapEnvironmentPostProcessor implements EnvironmentPost private final Log logger; - // Before ConfigFileApplicationListener so values there can use these ones + // Before ConfigFileApplicationListener so values there can use these private int order = ConfigDataEnvironmentPostProcessor.ORDER - 1; /** diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributor.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributor.java index 6899c8b1a8f7..c41750573027 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributor.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributor.java @@ -35,8 +35,8 @@ /** * A single element that may directly or indirectly contribute configuration data to the - * {@link Environment}. There are several different {@link Kind kinds} of contributor, all - * are immutable and will be replaced with new versions as imports are processed. + * {@link Environment}. There are several {@link Kind kinds} of contributor, all are + * immutable and will be replaced with new versions as imports are processed. *

    * Contributors may provide a set of imports that should be processed and ultimately * turned into children. There are two distinct import phases: diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/event/EventPublishingRunListener.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/event/EventPublishingRunListener.java index 79d1ec5d9590..9fc26e5d8c3f 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/event/EventPublishingRunListener.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/event/EventPublishingRunListener.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 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. @@ -125,7 +125,7 @@ public void failed(ConfigurableApplicationContext context, Throwable exception) } else { // An inactive context may not have a multicaster so we use our multicaster to - // call all of the context's listeners instead + // call all the context's listeners instead if (context instanceof AbstractApplicationContext) { for (ApplicationListener listener : ((AbstractApplicationContext) context) .getApplicationListeners()) { diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java index 7dac152282d5..e5a21fad3a7f 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java @@ -62,7 +62,7 @@ public enum DatabaseDriver { "SELECT COUNT(*) FROM INFORMATION_SCHEMA.SYSTEM_USERS"), /** - * SQL Lite. + * SQLite. */ SQLITE("SQLite", "org.sqlite.JDBC"), diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/r2dbc/EmbeddedDatabaseConnection.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/r2dbc/EmbeddedDatabaseConnection.java index f7f224415e3d..62f0d52ce769 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/r2dbc/EmbeddedDatabaseConnection.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/r2dbc/EmbeddedDatabaseConnection.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 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. @@ -25,7 +25,7 @@ import org.springframework.util.ClassUtils; /** - * Connection details for embedded databases compatible with r2dbc. + * Connection details for embedded databases compatible with R2DBC. * * @author Mark Paluch * @author Stephane Nicoll diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/system/ApplicationTemp.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/system/ApplicationTemp.java index 9be31b9d9691..9eff8ffe0d46 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/system/ApplicationTemp.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/system/ApplicationTemp.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 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. @@ -81,9 +81,9 @@ public File getDir() { } /** - * Return a sub-directory of the application temp. - * @param subDir the sub-directory name - * @return a sub-directory + * Return a subdirectory of the application temp. + * @param subDir the subdirectory name + * @return a subdirectory */ public File getDir(String subDir) { return createDirectory(getPath().resolve(subDir)).toFile(); diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/jetty/JettyServletWebServerFactory.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/jetty/JettyServletWebServerFactory.java index 49db3fced601..129f504fdea7 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/jetty/JettyServletWebServerFactory.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/jetty/JettyServletWebServerFactory.java @@ -479,7 +479,7 @@ public void setServerCustomizers(Collection cus /** * Returns a mutable collection of Jetty {@link JettyServerCustomizer}s that will be - * applied to the {@link Server} before the it is created. + * applied to the {@link Server} before it is created. * @return the {@link JettyServerCustomizer}s */ public Collection getServerCustomizers() { @@ -694,13 +694,13 @@ private static class SuppliedSameSiteCookieHandlerWrapper extends HandlerWrapper @Override public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { - HttpServletResponse wrappedResponse = new ResposeWrapper(response); + HttpServletResponse wrappedResponse = new ResponseWrapper(response); super.handle(target, baseRequest, request, wrappedResponse); } - class ResposeWrapper extends HttpServletResponseWrapper { + class ResponseWrapper extends HttpServletResponseWrapper { - ResposeWrapper(HttpServletResponse response) { + ResponseWrapper(HttpServletResponse response) { super(response); } diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactory.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactory.java index b866fc27fcf3..dba33bac4d69 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactory.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/servlet/server/AbstractServletWebServerFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 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. @@ -277,7 +277,7 @@ protected final ServletContextInitializer[] mergeInitializers(ServletContextInit } /** - * Returns whether or not the JSP servlet should be registered with the web server. + * Returns whether the JSP servlet should be registered with the web server. * @return {@code true} if the servlet should be registered, otherwise {@code false} */ protected boolean shouldRegisterJspServlet() { diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/WithPublicObjectToObjectMethod.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/WithPublicObjectToObjectMethod.java index 06fed654591f..c9f7a4edd26e 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/WithPublicObjectToObjectMethod.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/WithPublicObjectToObjectMethod.java @@ -19,7 +19,7 @@ import java.util.Optional; /** - * Data object with a pubic method picked up by the {@code ObjectToObjectConverter}. Used + * Data object with a public method picked up by the {@code ObjectToObjectConverter}. Used * in {@link ConfigurationPropertiesTests}. * * @author Phillip Webb diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/BinderTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/BinderTests.java index 388348bf9a47..46a53060f19c 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/BinderTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/bind/BinderTests.java @@ -76,7 +76,7 @@ void createWhenSourcesIsNullArrayShouldThrowException() { } @Test - void creatWhenSourcesIsNullIterableShouldThrowException() { + void createWhenSourcesIsNullIterableShouldThrowException() { assertThatIllegalArgumentException().isThrownBy(() -> new Binder((Iterable) null)) .withMessageContaining("Sources must not be null"); } diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertyNameTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertyNameTests.java index addb9efc5792..11ca1d56b38a 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertyNameTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/source/ConfigurationPropertyNameTests.java @@ -718,7 +718,7 @@ void isValidWhenNotValidShouldReturnFalse() { void hashCodeIsStored() { ConfigurationPropertyName name = ConfigurationPropertyName.of("hash.code"); int hashCode = name.hashCode(); - // hasFieldOrPropertyWithValue would lookup for hashCode() + // hasFieldOrPropertyWithValue would look up for hashCode() assertThat(ReflectionTestUtils.getField(name, "hashCode")).isEqualTo(hashCode); } diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/jdbc/DatabaseDriverClassNameTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/jdbc/DatabaseDriverClassNameTests.java index f1e6a1adfb10..511bc8e29b09 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/jdbc/DatabaseDriverClassNameTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/jdbc/DatabaseDriverClassNameTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 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. @@ -56,7 +56,7 @@ void databaseClassIsOfRequiredType(DatabaseDriver driver, String className, Clas } private List getInterfaceNames(String className) throws IOException { - // Use ASM to avoid unwanted side-effects of loading JDBC drivers + // Use ASM to avoid unwanted side effects of loading JDBC drivers ClassReader classReader = new ClassReader(getClass().getResourceAsStream("/" + className + ".class")); List interfaceNames = new ArrayList<>(); for (String name : classReader.getInterfaces()) { diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/context/AnnotationConfigServletWebServerApplicationContextTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/context/AnnotationConfigServletWebServerApplicationContextTests.java index 756fcecba310..6293dd1e636e 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/context/AnnotationConfigServletWebServerApplicationContextTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/context/AnnotationConfigServletWebServerApplicationContextTests.java @@ -119,7 +119,7 @@ void createAndInitializeCyclic() { ServletContextAwareEmbeddedConfiguration.class); verifyContext(); // You can't initialize the application context and inject the servlet context - // because of a cycle - we'd like this to be not null but it never will be + // because of a cycle - we'd like this to be not null, but it never will be assertThat(this.context.getBean(ServletContextAwareEmbeddedConfiguration.class).getServletContext()).isNull(); } diff --git a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContextTests.java b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContextTests.java index 60cbafa3ee23..418fd529d1de 100644 --- a/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContextTests.java +++ b/spring-boot-project/spring-boot/src/test/java/org/springframework/boot/web/servlet/context/ServletWebServerApplicationContextTests.java @@ -111,7 +111,7 @@ void startRegistrations() { addWebServerFactoryBean(); this.context.refresh(); MockServletWebServerFactory factory = getWebServerFactory(); - // Ensure that the context has been setup + // Ensure that the context has been set up assertThat(this.context.getServletContext()).isEqualTo(factory.getServletContext()); then(factory.getServletContext()).should() .setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, this.context); @@ -125,7 +125,7 @@ void startRegistrations() { @Test void doesNotRegistersShutdownHook() { // See gh-314 for background. We no longer register the shutdown hook - // since it is really the callers responsibility. The shutdown hook could + // since it is really the caller's responsibility. The shutdown hook could // also be problematic in a classic WAR deployment. addWebServerFactoryBean(); this.context.refresh();