diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/AuditEvent.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/AuditEvent.java index 1587f21ef86..df1c7a86ba6 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/AuditEvent.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/AuditEvent.java @@ -61,7 +61,7 @@ public class AuditEvent implements Serializable { /** * Create a new audit event for the current time from data provided as name-value - * pairs + * pairs. * @param principal The user principal responsible * @param type the event type * @param data The event data in the form 'key=value' or simply 'key' diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/InMemoryAuditEventRepository.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/InMemoryAuditEventRepository.java index 73d7d3c63f6..087a51f1414 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/InMemoryAuditEventRepository.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/InMemoryAuditEventRepository.java @@ -46,7 +46,8 @@ public class InMemoryAuditEventRepository implements AuditEventRepository { } /** - * @param capacity the capacity to set + * Set the capacity of this event repository. + * @param capacity the capacity */ public synchronized void setCapacity(int capacity) { this.events = new AuditEvent[capacity]; diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/listener/AuditApplicationEvent.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/listener/AuditApplicationEvent.java index 94c8e2a25bf..9bc097c3610 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/listener/AuditApplicationEvent.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/audit/listener/AuditApplicationEvent.java @@ -82,6 +82,7 @@ public class AuditApplicationEvent extends ApplicationEvent { } /** + * Get the audit event. * @return the audit event */ public AuditEvent getAuditEvent() { diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfigurationProperties.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfigurationProperties.java index 7d5c1d0b21b..874bf927bad 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfigurationProperties.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/HealthIndicatorAutoConfigurationProperties.java @@ -21,7 +21,7 @@ import java.util.List; import org.springframework.boot.context.properties.ConfigurationProperties; /** - * Configuration properties for some health properties + * Configuration properties for some health properties. * * @author Christian Dupuis * @since 1.2.0 diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ManagementContextResolver.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ManagementContextResolver.java index 0273d2188fe..ef4a4c6046f 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ManagementContextResolver.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ManagementContextResolver.java @@ -52,7 +52,7 @@ public class ManagementContextResolver { } /** - * Return the management {@link ApplicationContext} + * Return the management {@link ApplicationContext}. * @return the management {@link ApplicationContext} */ public ApplicationContext getApplicationContext() { diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ManagementWebSecurityAutoConfiguration.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ManagementWebSecurityAutoConfiguration.java index f3224cd9cbc..c942b2deba1 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ManagementWebSecurityAutoConfiguration.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ManagementWebSecurityAutoConfiguration.java @@ -185,7 +185,7 @@ public class ManagementWebSecurityAutoConfiguration { } /** - * WebSecurityEnabler condition + * WebSecurityEnabler condition. */ static class WebSecurityEnablerCondition extends SpringBootCondition { diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ShellProperties.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ShellProperties.java index e823a059da3..3319da4803f 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ShellProperties.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/ShellProperties.java @@ -221,7 +221,7 @@ public class ShellProperties { } /** - * SSH properties + * SSH properties. */ public static class Ssh extends CrshShellProperties { @@ -279,7 +279,7 @@ public class ShellProperties { } /** - * Telnet properties + * Telnet properties. */ public static class Telnet extends CrshShellProperties { @@ -322,7 +322,7 @@ public class ShellProperties { } /** - * Auth specific properties for JAAS authentication + * Auth specific properties for JAAS authentication. */ @ConfigurationProperties(prefix = "shell.auth.jaas", ignoreUnknownFields = false) public static class JaasAuthenticationProperties extends @@ -351,7 +351,7 @@ public class ShellProperties { } /** - * Auth specific properties for key authentication + * Auth specific properties for key authentication. */ @ConfigurationProperties(prefix = "shell.auth.key", ignoreUnknownFields = false) public static class KeyAuthenticationProperties extends @@ -382,7 +382,7 @@ public class ShellProperties { } /** - * Auth specific properties for simple authentication + * Auth specific properties for simple authentication. */ @ConfigurationProperties(prefix = "shell.auth.simple", ignoreUnknownFields = false) public static class SimpleAuthenticationProperties extends @@ -457,7 +457,7 @@ public class ShellProperties { } /** - * Auth specific properties for Spring authentication + * Auth specific properties for Spring authentication. */ @ConfigurationProperties(prefix = "shell.auth.spring", ignoreUnknownFields = false) public static class SpringAuthenticationProperties extends diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cache/AbstractJmxCacheStatisticsProvider.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cache/AbstractJmxCacheStatisticsProvider.java index d975aafe66a..0120223bbee 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cache/AbstractJmxCacheStatisticsProvider.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/cache/AbstractJmxCacheStatisticsProvider.java @@ -37,9 +37,9 @@ import org.springframework.cache.CacheManager; * Base {@link CacheStatisticsProvider} implementation that uses JMX to retrieve the cache * statistics. * + * @param The cache type * @author Stephane Nicoll * @since 1.3.0 - * @param The cache type */ public abstract class AbstractJmxCacheStatisticsProvider implements CacheStatisticsProvider { diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/ConfigurationPropertiesReportEndpoint.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/ConfigurationPropertiesReportEndpoint.java index bb5915f089f..0a53cb1ab00 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/ConfigurationPropertiesReportEndpoint.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/ConfigurationPropertiesReportEndpoint.java @@ -144,6 +144,10 @@ public class ConfigurationPropertiesReportEndpoint extends /** * Cautiously serialize the bean to a map (returning a map with an error message * instead of throwing an exception if there is a problem). + * @param mapper the object mapper + * @param bean the source bean + * @param prefix the prefix + * @return the serialized instance */ private Map safeSerialize(ObjectMapper mapper, Object bean, String prefix) { @@ -173,6 +177,7 @@ public class ConfigurationPropertiesReportEndpoint extends /** * Ensure only bindable and non-cyclic bean properties are reported. + * @param mapper the object mapper */ private void applySerializationModifier(ObjectMapper mapper) { SerializerFactory factory = BeanSerializerFactory.instance @@ -183,6 +188,7 @@ public class ConfigurationPropertiesReportEndpoint extends /** * Configure PropertyFilter to make sure Jackson doesn't process CGLIB generated bean * properties. + * @param mapper the object mapper */ private void applyCglibFilters(ObjectMapper mapper) { mapper.setAnnotationIntrospector(new CglibAnnotationIntrospector()); @@ -192,7 +198,11 @@ public class ConfigurationPropertiesReportEndpoint extends /** * Extract configuration prefix from {@link ConfigurationProperties} annotation. - * @param beanFactoryMetaData + * @param context the application context + * @param beanFactoryMetaData the bean factory meta-data + * @param beanName the bean name + * @param bean the bean + * @return the prefix */ private String extractPrefix(ApplicationContext context, ConfigurationBeanFactoryMetaData beanFactoryMetaData, String beanName, @@ -216,6 +226,8 @@ public class ConfigurationPropertiesReportEndpoint extends /** * Sanitize all unwanted configuration properties to avoid leaking of sensitive * information. + * @param map the source map + * @return the sanitized map */ @SuppressWarnings("unchecked") private Map sanitize(Map map) { diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/DataSourcePublicMetrics.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/DataSourcePublicMetrics.java index 43530f7ef6d..995af74eaaa 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/DataSourcePublicMetrics.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/DataSourcePublicMetrics.java @@ -113,6 +113,7 @@ public class DataSourcePublicMetrics implements PublicMetrics { * Attempt to locate the primary {@link DataSource} (i.e. either the only data source * available or the one amongst the candidates marked as {@link Primary}. Return * {@code null} if there no primary data source could be found. + * @return the primary datasource */ private DataSource getPrimaryDataSource() { try { diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/FlywayEndpoint.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/FlywayEndpoint.java index c18b3534bc4..b3a651a383b 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/FlywayEndpoint.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/FlywayEndpoint.java @@ -55,6 +55,9 @@ public class FlywayEndpoint extends AbstractEndpoint> { return migrations; } + /** + * Migration properties. + */ public static class FlywayMigration { private MigrationType type; diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/HealthEndpoint.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/HealthEndpoint.java index 22f4102dcda..7e171bab680 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/HealthEndpoint.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/HealthEndpoint.java @@ -83,6 +83,8 @@ public class HealthEndpoint extends AbstractEndpoint { /** * Turns the bean name into a key that can be used in the map of health information. + * @param name the bean name + * @return the key */ private String getKey(String name) { int index = name.toLowerCase().indexOf("healthindicator"); diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/PublicMetrics.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/PublicMetrics.java index 18a3dadde3e..bc3ea2861ce 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/PublicMetrics.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/PublicMetrics.java @@ -29,7 +29,8 @@ import org.springframework.boot.actuate.metrics.Metric; public interface PublicMetrics { /** - * @return an indication of current state through metrics + * Return an indication of current state through metrics. + * @return the public metrics */ Collection> metrics(); diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/RequestMappingEndpoint.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/RequestMappingEndpoint.java index 79f4562e3e1..9d4f4a16e1f 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/RequestMappingEndpoint.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/RequestMappingEndpoint.java @@ -58,14 +58,16 @@ public class RequestMappingEndpoint extends AbstractEndpoint } /** - * @param handlerMappings the mappings to set + * Set the handler mappings. + * @param handlerMappings the handler mappings */ public void setHandlerMappings(List handlerMappings) { this.handlerMappings = handlerMappings; } /** - * @param methodMappings the method mappings to set + * Set the method mappings. + * @param methodMappings the method mappings */ public void setMethodMappings(List> methodMappings) { this.methodMappings = methodMappings; diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/SystemPublicMetrics.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/SystemPublicMetrics.java index bc0ffad3d37..4e10836bf6f 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/SystemPublicMetrics.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/SystemPublicMetrics.java @@ -76,6 +76,7 @@ public class SystemPublicMetrics implements PublicMetrics, Ordered { /** * Add metrics from ManagementFactory if possible. Note that ManagementFactory is not * available on Google App Engine. + * @param result the result */ private void addManagementMetrics(Collection> result) { try { @@ -153,6 +154,8 @@ public class SystemPublicMetrics implements PublicMetrics, Ordered { /** * Turn GC names like 'PS Scavenge' or 'PS MarkSweep' into something that is more * metrics friendly. + * @param name the source name + * @return a metric friendly name */ private String beautifyGcName(String name) { return StringUtils.replace(name, " ", "_").toLowerCase(); diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/jmx/EndpointMBeanExporter.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/jmx/EndpointMBeanExporter.java index 83a1f356c73..6327d175523 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/jmx/EndpointMBeanExporter.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/jmx/EndpointMBeanExporter.java @@ -61,6 +61,9 @@ import com.fasterxml.jackson.databind.ObjectMapper; public class EndpointMBeanExporter extends MBeanExporter implements SmartLifecycle, ApplicationContextAware { + /** + * The default JMX domain. + */ public static final String DEFAULT_DOMAIN = "org.springframework.boot"; private static Log logger = LogFactory.getLog(EndpointMBeanExporter.class); diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/ActuatorHalBrowserEndpoint.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/ActuatorHalBrowserEndpoint.java index 084c8f601dd..f5fc4e1e8bd 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/ActuatorHalBrowserEndpoint.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/ActuatorHalBrowserEndpoint.java @@ -32,6 +32,14 @@ import org.springframework.web.servlet.resource.ResourceTransformer; import org.springframework.web.servlet.resource.ResourceTransformerChain; import org.springframework.web.servlet.resource.TransformedResource; +/** + * {@link MvcEndpoint} to expose a HAL browser. + * + * @author Dave Syer + * @author Phillip Webb + * @author Andy Wilkinson + * @since 1.3.0 + */ public class ActuatorHalBrowserEndpoint extends ActuatorHalJsonEndpoint implements ResourceLoaderAware { @@ -93,6 +101,9 @@ public class ActuatorHalBrowserEndpoint extends ActuatorHalJsonEndpoint implemen return null; } + /** + * HAL Browser properties. + */ public static class HalBrowserLocation { private final String resourceLocation; diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/ActuatorHalJsonEndpoint.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/ActuatorHalJsonEndpoint.java index 4edf09a9a56..78e5098413c 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/ActuatorHalJsonEndpoint.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/ActuatorHalJsonEndpoint.java @@ -29,12 +29,12 @@ import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; /** - * {@link MvcEndpoint} for the actuator. Uses content negotiation to provide access to the - * HAL browser (when on the classpath), and to HAL-formatted JSON. + * {@link MvcEndpoint} to expose HAL-formatted JSON. * * @author Dave Syer - * @author Phil Webb + * @author Phillip Webb * @author Andy Wilkinson + * @since 1.3.0 */ @ConfigurationProperties("endpoints.actuator") public class ActuatorHalJsonEndpoint extends WebMvcConfigurerAdapter implements diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/EndpointHandlerMapping.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/EndpointHandlerMapping.java index e86fdc9d604..d6e603cd05c 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/EndpointHandlerMapping.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/EndpointHandlerMapping.java @@ -97,7 +97,7 @@ public class EndpointHandlerMapping extends RequestMappingHandlerMapping { /** * Since all handler beans are passed into the constructor there is no need to detect - * anything here + * anything here. */ @Override protected boolean isHandler(Class beanType) { @@ -149,7 +149,8 @@ public class EndpointHandlerMapping extends RequestMappingHandlerMapping { } /** - * @param prefix the prefix to set + * Set the prefix used in mappings. + * @param prefix the prefix */ public void setPrefix(String prefix) { Assert.isTrue("".equals(prefix) || StringUtils.startsWithIgnoreCase(prefix, "/"), @@ -158,13 +159,15 @@ public class EndpointHandlerMapping extends RequestMappingHandlerMapping { } /** - * @return the prefix used in mappings + * Get the prefix used in mappings. + * @return the prefix */ public String getPrefix() { return this.prefix; } /** + * Get the path of the endpoint. * @param endpoint the endpoint * @return the path used in mappings */ @@ -189,7 +192,7 @@ public class EndpointHandlerMapping extends RequestMappingHandlerMapping { } /** - * Return the endpoints + * Return the endpoints. * @return the endpoints */ public Set getEndpoints() { diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/EndpointHandlerMappingCustomizer.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/EndpointHandlerMappingCustomizer.java index b0877e36ddc..de0c8ff3738 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/EndpointHandlerMappingCustomizer.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/EndpointHandlerMappingCustomizer.java @@ -25,7 +25,7 @@ package org.springframework.boot.actuate.endpoint.mvc; public interface EndpointHandlerMappingCustomizer { /** - * Customize the specified {@link EndpointHandlerMapping} + * Customize the specified {@link EndpointHandlerMapping}. * @param mapping the {@link EndpointHandlerMapping} to customize */ void customize(EndpointHandlerMapping mapping); diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/EndpointMvcAdapter.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/EndpointMvcAdapter.java index aa152f5854b..a44815e9f02 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/EndpointMvcAdapter.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/EndpointMvcAdapter.java @@ -74,10 +74,9 @@ public class EndpointMvcAdapter implements MvcEndpoint { /** * Returns the response that should be returned when the endpoint is disabled. - * - * @see Endpoint#isEnabled() - * @since 1.2.4 * @return The response to be returned when the endpoint is disabled + * @since 1.2.4 + * @see Endpoint#isEnabled() */ protected ResponseEntity getDisabledResponse() { return MvcEndpoint.DISABLED_RESPONSE; diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/MvcEndpoint.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/MvcEndpoint.java index 1bc1753a400..2bb30de71c1 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/MvcEndpoint.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/MvcEndpoint.java @@ -34,6 +34,9 @@ import org.springframework.http.ResponseEntity; */ public interface MvcEndpoint { + /** + * A {@link ResponseEntity} returned for disabled endpoints. + */ ResponseEntity> DISABLED_RESPONSE = new ResponseEntity>( Collections.singletonMap("message", "This endpoint is disabled"), HttpStatus.NOT_FOUND); diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/NamePatternFilter.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/NamePatternFilter.java index ca875d6761c..c0d61f32bdd 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/NamePatternFilter.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/NamePatternFilter.java @@ -26,9 +26,9 @@ import java.util.regex.Pattern; * must provide implementations of {@link #getValue(Object, String)} and * {@link #getNames(Object, NameCallback)}. * + * @param The source data type * @author Phillip Webb * @author Sergei Egorov - * @param The source data type * @since 1.3.0 */ abstract class NamePatternFilter { @@ -66,12 +66,18 @@ abstract class NamePatternFilter { protected abstract Object getValue(T source, String name); + /** + * Callback used to add a name. + */ protected interface NameCallback { void addName(String name); } + /** + * {@link NameCallback} implementation to collect results. + */ private class ResultCollectingNameCallback implements NameCallback { private final Pattern pattern; diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DataSourceHealthIndicator.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DataSourceHealthIndicator.java index 24bebf2c1c5..37af708253c 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DataSourceHealthIndicator.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DataSourceHealthIndicator.java @@ -185,6 +185,9 @@ public class DataSourceHealthIndicator extends AbstractHealthIndicator implement } + /** + * Known database products. + */ protected enum Product { HSQLDB("HSQL Database Engine", diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DiskSpaceHealthIndicator.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DiskSpaceHealthIndicator.java index e8c0f5ab4a1..b900dcc3cab 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DiskSpaceHealthIndicator.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DiskSpaceHealthIndicator.java @@ -37,7 +37,7 @@ public class DiskSpaceHealthIndicator extends AbstractHealthIndicator { private final DiskSpaceHealthIndicatorProperties properties; /** - * Create a new {@code DiskSpaceHealthIndicator} + * Create a new {@code DiskSpaceHealthIndicator}. * @param properties the disk space properties */ @Autowired diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DiskSpaceHealthIndicatorProperties.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DiskSpaceHealthIndicatorProperties.java index f53e4b737d6..bb5929095d6 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DiskSpaceHealthIndicatorProperties.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DiskSpaceHealthIndicatorProperties.java @@ -22,7 +22,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.util.Assert; /** - * External configuration properties for {@link DiskSpaceHealthIndicator} + * External configuration properties for {@link DiskSpaceHealthIndicator}. * * @author Andy Wilkinson * @since 1.2.0 diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/ElasticsearchHealthIndicatorProperties.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/ElasticsearchHealthIndicatorProperties.java index 1f8ec6a4cae..6222a04136a 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/ElasticsearchHealthIndicatorProperties.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/ElasticsearchHealthIndicatorProperties.java @@ -22,7 +22,7 @@ import java.util.List; import org.springframework.boot.context.properties.ConfigurationProperties; /** - * External configuration properties for {@link ElasticsearchHealthIndicator} + * External configuration properties for {@link ElasticsearchHealthIndicator}. * * @author Binwei Yang * @author Andy Wilkinson diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/Health.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/Health.java index 90f32ad1626..f7f853fca7c 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/Health.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/Health.java @@ -68,7 +68,8 @@ public final class Health { } /** - * @return the status of the health (never {@code null}) + * Return the status of the health. + * @return the status (never {@code null}) */ @JsonUnwrapped public Status getStatus() { @@ -76,7 +77,8 @@ public final class Health { } /** - * @return the details of the health or an empty map. + * Return the details of the health. + * @return the details (or an empty map) */ @JsonAnyGetter public Map getDetails() { @@ -280,7 +282,7 @@ public final class Health { } /** - * Set status to given {@link Status} instance + * Set status to given {@link Status} instance. * @param status the status * @return this {@link Builder} instance */ diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/HealthIndicator.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/HealthIndicator.java index 816cf37b842..c4774337551 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/HealthIndicator.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/HealthIndicator.java @@ -25,7 +25,8 @@ package org.springframework.boot.actuate.health; public interface HealthIndicator { /** - * @return an indication of health + * Return an indication of health. + * @return the health for */ Health health(); diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/Status.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/Status.java index 53cf4f711b1..d369f238b1e 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/Status.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/Status.java @@ -38,22 +38,22 @@ import com.fasterxml.jackson.annotation.JsonProperty; public final class Status { /** - * Convenient constant value representing unknown state + * Convenient constant value representing unknown state. */ public static final Status UNKNOWN = new Status("UNKNOWN"); /** - * Convenient constant value representing up state + * Convenient constant value representing up state. */ public static final Status UP = new Status("UP"); /** - * Convenient constant value representing down state + * Convenient constant value representing down state. */ public static final Status DOWN = new Status("DOWN"); /** - * Convenient constant value representing out-of-service state + * Convenient constant value representing out-of-service state. */ public static final Status OUT_OF_SERVICE = new Status("OUT_OF_SERVICE"); @@ -82,7 +82,8 @@ public final class Status { } /** - * @return the code for this status + * Return the code for this status. + * @return the code */ @JsonProperty("status") public String getCode() { @@ -90,7 +91,8 @@ public final class Status { } /** - * @return the description of this status + * Return the description of this status. + * @return the description */ @JsonInclude(Include.NON_EMPTY) public String getDescription() { diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/GaugeService.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/GaugeService.java index 53bc58645d1..699d9b2f63e 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/GaugeService.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/GaugeService.java @@ -30,7 +30,7 @@ package org.springframework.boot.actuate.metrics; public interface GaugeService { /** - * Set the specified gauge value + * Set the specified gauge value. * @param metricName the name of the gauge to set * @param value the value of the gauge */ diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/buffer/Buffer.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/buffer/Buffer.java index d5e6e9b34e4..cb033b2565e 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/buffer/Buffer.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/buffer/Buffer.java @@ -19,9 +19,9 @@ package org.springframework.boot.actuate.metrics.buffer; /** * Base class for a mutable buffer containing a timestamp and a value. * + * @param The value type * @author Dave Syer * @author Phillip Webb - * @param The value type */ abstract class Buffer { diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/dropwizard/DropwizardMetricServices.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/dropwizard/DropwizardMetricServices.java index e899adb16e8..a3d9856ff79 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/dropwizard/DropwizardMetricServices.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/dropwizard/DropwizardMetricServices.java @@ -32,8 +32,7 @@ import com.codahale.metrics.Timer; /** * A {@link GaugeService} and {@link CounterService} that sends data to a Dropwizard - * {@link MetricRegistry} based on a naming convention: - * + * {@link MetricRegistry} based on a naming convention. *
    *
  • Updates to {@link #increment(String)} with names in "meter.*" are treated as * {@link Meter} events
  • diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/export/MetricExportProperties.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/export/MetricExportProperties.java index 38fff856499..539f0e8c2e4 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/export/MetricExportProperties.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/export/MetricExportProperties.java @@ -109,6 +109,9 @@ public class MetricExportProperties extends TriggerProperties { return this; } + /** + * Aggregate properties. + */ public static class Aggregate { /** @@ -147,6 +150,9 @@ public class MetricExportProperties extends TriggerProperties { } + /** + * Redis properties. + */ public static class Redis { /** diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/jmx/JmxMetricWriter.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/jmx/JmxMetricWriter.java index 0b18cd42e36..c73e7a7d7c2 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/jmx/JmxMetricWriter.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/jmx/JmxMetricWriter.java @@ -127,6 +127,9 @@ public class JmxMetricWriter implements MetricWriter { return this.namingStrategy.getObjectName(value, key); } + /** + * A single metric value. + */ @ManagedResource public static class MetricValue { diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/opentsdb/DefaultOpenTsdbNamingStrategy.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/opentsdb/DefaultOpenTsdbNamingStrategy.java index c579555a5d3..53aaaecd822 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/opentsdb/DefaultOpenTsdbNamingStrategy.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/opentsdb/DefaultOpenTsdbNamingStrategy.java @@ -38,8 +38,14 @@ import org.springframework.util.ObjectUtils; */ public class DefaultOpenTsdbNamingStrategy implements OpenTsdbNamingStrategy { + /** + * The domain key. + */ public static final String DOMAIN_KEY = "domain"; + /** + * The process key. + */ public static final String PROCESS_KEY = "process"; /** diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/opentsdb/OpenTsdbNamingStrategy.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/opentsdb/OpenTsdbNamingStrategy.java index 710fbbeba18..156fe75a54b 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/opentsdb/OpenTsdbNamingStrategy.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/opentsdb/OpenTsdbNamingStrategy.java @@ -25,7 +25,7 @@ package org.springframework.boot.actuate.metrics.opentsdb; public interface OpenTsdbNamingStrategy { /** - * Convert the metric name into a {@link OpenTsdbName} + * Convert the metric name into a {@link OpenTsdbName}. * @param metricName the name of the metric * @return an Open TSDB name */ diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/repository/MultiMetricRepository.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/repository/MultiMetricRepository.java index aecffb7ddde..c80a2576e06 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/repository/MultiMetricRepository.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/repository/MultiMetricRepository.java @@ -28,13 +28,14 @@ import org.springframework.boot.actuate.metrics.writer.PrefixMetricWriter; public interface MultiMetricRepository extends PrefixMetricReader, PrefixMetricWriter { /** - * The names of all the groups known to this repository + * The names of all the groups known to this repository. * @return all available group names */ Iterable groups(); /** - * @return the number of groups available + * The number of groups available in this repository. + * @return the number of groups */ long countGroups(); diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/rich/RichGauge.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/rich/RichGauge.java index 2a44c9f45e5..1dfb4051dff 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/rich/RichGauge.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/rich/RichGauge.java @@ -31,16 +31,34 @@ import org.springframework.util.Assert; */ public final class RichGauge { + /** + * The suffix for count gauges. + */ public static final String COUNT = ".count"; + /** + * The suffix for max gauges. + */ public static final String MAX = ".max"; + /** + * The suffix for min gauges. + */ public static final String MIN = ".min"; + /** + * The suffix for average value gauges. + */ public static final String AVG = ".avg"; + /** + * The suffix for alpha gauges. + */ public static final String ALPHA = ".alpha"; + /** + * The suffix for value gauges. + */ public static final String VAL = ".val"; private final String name; @@ -90,23 +108,24 @@ public final class RichGauge { } /** - * @return the name of the gauge + * Return the name of the gauge. + * @return the name */ public String getName() { return this.name; } /** - * @return the current value + * Return the current value of the gauge. + * @return the value */ public double getValue() { return this.value; } /** - * Either an exponential weighted moving average or a simple mean, respectively, - * depending on whether the weight 'alpha' has been set for this gauge. - * + * Return either an exponential weighted moving average or a simple mean, + * respectively, depending on whether the weight 'alpha' has been set for this gauge. * @return The average over all the accumulated values */ public double getAverage() { @@ -114,6 +133,7 @@ public final class RichGauge { } /** + * Return the maximum value of the gauge. * @return the maximum value */ public double getMax() { @@ -121,6 +141,7 @@ public final class RichGauge { } /** + * Return the minimum value of the gauge. * @return the minimum value */ public double getMin() { @@ -128,14 +149,16 @@ public final class RichGauge { } /** - * @return Number of times the value has been set. + * Return the number of times the value has been set. + * @return the value set count */ public long getCount() { return this.count; } /** - * @return the smoothing constant value. + * Return the smoothing constant value. + * @return the alpha smoothing value */ public double getAlpha() { return this.alpha; diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/rich/RichGaugeReader.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/rich/RichGaugeReader.java index d03a2b1f537..34d608b759b 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/rich/RichGaugeReader.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/rich/RichGaugeReader.java @@ -37,7 +37,8 @@ public interface RichGaugeReader { Iterable findAll(); /** - * @return the number of gauge values available + * Return the number of gauge values available. + * @return the number of values */ long count(); diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/util/SimpleInMemoryRepository.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/util/SimpleInMemoryRepository.java index 3a0ea79556b..a2901512662 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/util/SimpleInMemoryRepository.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/util/SimpleInMemoryRepository.java @@ -97,8 +97,19 @@ public class SimpleInMemoryRepository { return this.values; } + /** + * Callback used to update a value. + * @param the value type + */ public interface Callback { + + /** + * Modify an existing value. + * @param current the value to modify + * @return the updated value + */ T modify(T current); + } } diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/writer/DropwizardMetricWriter.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/writer/DropwizardMetricWriter.java index b8c79122774..1e0b52969c7 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/writer/DropwizardMetricWriter.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/writer/DropwizardMetricWriter.java @@ -32,7 +32,7 @@ import com.codahale.metrics.Timer; /** * A {@link MetricWriter} that send data to a Dropwizard {@link MetricRegistry} based on a - * naming convention: + * naming convention. * *
      *
    • Updates to {@link #increment(Delta)} with names in "meter.*" are treated as diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/writer/package-info.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/writer/package-info.java index 0f34887c2a8..c3ece498758 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/writer/package-info.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/writer/package-info.java @@ -15,7 +15,7 @@ */ /** - * Support for writing metrics + * Support for writing metrics. */ package org.springframework.boot.actuate.metrics.writer; diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/InMemoryTraceRepository.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/InMemoryTraceRepository.java index 765628c87d7..86a73d9d5b8 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/InMemoryTraceRepository.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/trace/InMemoryTraceRepository.java @@ -48,7 +48,8 @@ public class InMemoryTraceRepository implements TraceRepository { } /** - * @param capacity the capacity to set + * Set the capacity of the in-memory repository. + * @param capacity the capacity */ public void setCapacity(int capacity) { synchronized (this.traces) { diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AbstractDependsOnBeanFactoryPostProcessor.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AbstractDependsOnBeanFactoryPostProcessor.java index dce1f4b90af..8f2dbce3190 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AbstractDependsOnBeanFactoryPostProcessor.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AbstractDependsOnBeanFactoryPostProcessor.java @@ -33,7 +33,7 @@ import org.springframework.util.StringUtils; /** * Abstract base class for a {@link BeanFactoryPostProcessor} that can be used to * dynamically declare that all beans of a specific type should depend on one or more - * specific beans + * specific beans. * * @author Marcel Overdijk * @author Dave Syer diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationPackages.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationPackages.java index 5b7bc4d9740..88f3065dcbe 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationPackages.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/AutoConfigurationPackages.java @@ -62,7 +62,7 @@ public abstract class AutoConfigurationPackages { } /** - * Return the auto-configuration base packages for the given bean factory + * Return the auto-configuration base packages for the given bean factory. * @param beanFactory the source bean factory * @return a list of auto-configuration packages * @throws IllegalStateException if auto-configuration is not enabled diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/JobExecutionEvent.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/JobExecutionEvent.java index 7c0f82bc7ab..d83b7412a7d 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/JobExecutionEvent.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/JobExecutionEvent.java @@ -30,6 +30,7 @@ public class JobExecutionEvent extends ApplicationEvent { private final JobExecution execution; /** + * Create a new {@link JobExecutionEvent} instance. * @param execution the job execution */ public JobExecutionEvent(JobExecution execution) { @@ -38,6 +39,7 @@ public class JobExecutionEvent extends ApplicationEvent { } /** + * Return the job execution. * @return the job execution */ public JobExecution getJobExecution() { diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/CacheType.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/CacheType.java index ceac4541b70..f8cfc957e12 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/CacheType.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/cache/CacheType.java @@ -42,7 +42,7 @@ public enum CacheType { EHCACHE, /** - * Hazelcast backed caching + * Hazelcast backed caching. */ HAZELCAST, diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/AbstractNestedCondition.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/AbstractNestedCondition.java index a5585d73085..131c1e6701f 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/AbstractNestedCondition.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/AbstractNestedCondition.java @@ -38,6 +38,8 @@ import org.springframework.util.MultiValueMap; import org.springframework.util.StringUtils; /** + * Abstract base class for nested conditions. + * * @author Phillip Webb */ abstract class AbstractNestedCondition extends SpringBootCondition implements diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionEvaluationReport.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionEvaluationReport.java index a429216b5da..e61710ec4a4 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionEvaluationReport.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionEvaluationReport.java @@ -88,7 +88,7 @@ public final class ConditionEvaluationReport { } /** - * Records the name of the classes that have been excluded from condition evaluation + * Records the name of the classes that have been excluded from condition evaluation. * @param exclusions the names of the excluded classes */ public void recordExclusions(Collection exclusions) { @@ -97,7 +97,7 @@ public final class ConditionEvaluationReport { } /** - * Records the names of the classes that are candidates for condition evaluation + * Records the names of the classes that are candidates for condition evaluation. * @param evaluationCandidates the names of the classes whose conditions will be * evaluated */ diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnJavaCondition.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnJavaCondition.java index 5b13aeba346..df2d7f5ce88 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnJavaCondition.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnJavaCondition.java @@ -27,7 +27,7 @@ import org.springframework.core.annotation.Order; import org.springframework.core.type.AnnotatedTypeMetadata; /** - * {@link Condition} that checks for a required version of Java + * {@link Condition} that checks for a required version of Java. * * @author Oliver Gierke * @author Phillip Webb diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnPropertyCondition.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnPropertyCondition.java index cd8822d218c..fadec7e5691 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnPropertyCondition.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/OnPropertyCondition.java @@ -35,8 +35,8 @@ import org.springframework.util.StringUtils; * @author Maciej Walkowiak * @author Phillip Webb * @author Stephane Nicoll - * @see ConditionalOnProperty * @since 1.1.0 + * @see ConditionalOnProperty */ class OnPropertyCondition extends SpringBootCondition { diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/SearchStrategy.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/SearchStrategy.java index 71dfdfcebe4..74be38e6fa8 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/SearchStrategy.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/SearchStrategy.java @@ -24,17 +24,17 @@ package org.springframework.boot.autoconfigure.condition; public enum SearchStrategy { /** - * Search only the current context + * Search only the current context. */ CURRENT, /** - * Search all parents and ancestors, but not the current context + * Search all parents and ancestors, but not the current context. */ PARENTS, /** - * Search the entire hierarchy + * Search the entire hierarchy. */ ALL diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/dao/PersistenceExceptionTranslationAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/dao/PersistenceExceptionTranslationAutoConfiguration.java index 5b3ef16cd03..ece100ddea3 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/dao/PersistenceExceptionTranslationAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/dao/PersistenceExceptionTranslationAutoConfiguration.java @@ -25,7 +25,7 @@ import org.springframework.dao.annotation.PersistenceExceptionTranslationPostPro /** * {@link EnableAutoConfiguration Auto-configuration} for Spring's persistence exception - * translation + * translation. * * @author Andy Wilkinson * @since 1.2.0 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/FreeMarkerProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/FreeMarkerProperties.java index 273f76d9808..2eec98d39fc 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/FreeMarkerProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/FreeMarkerProperties.java @@ -23,7 +23,7 @@ import org.springframework.boot.autoconfigure.template.AbstractTemplateViewResol import org.springframework.boot.context.properties.ConfigurationProperties; /** - * {@link ConfigurationProperties} for configuring FreeMarker + * {@link ConfigurationProperties} for configuring FreeMarker. * * @author Dave Syer * @author Andy Wilkinson diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/FreeMarkerTemplateAvailabilityProvider.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/FreeMarkerTemplateAvailabilityProvider.java index b04081ba777..7dee56d674c 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/FreeMarkerTemplateAvailabilityProvider.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/freemarker/FreeMarkerTemplateAvailabilityProvider.java @@ -23,7 +23,7 @@ import org.springframework.util.ClassUtils; /** * {@link TemplateAvailabilityProvider} that provides availability information for - * FreeMarker view templates + * FreeMarker view templates. * * @author Andy Wilkinson * @since 1.1.0 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/groovy/template/GroovyTemplateAvailabilityProvider.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/groovy/template/GroovyTemplateAvailabilityProvider.java index c089b6d0aed..4d22fb7d510 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/groovy/template/GroovyTemplateAvailabilityProvider.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/groovy/template/GroovyTemplateAvailabilityProvider.java @@ -23,7 +23,7 @@ import org.springframework.util.ClassUtils; /** * {@link TemplateAvailabilityProvider} that provides availability information for Groovy - * view templates + * view templates. * * @author Dave Syer * @since 1.1.0 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/h2/H2ConsoleAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/h2/H2ConsoleAutoConfiguration.java index f78e086b0e7..35c2d54e2f9 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/h2/H2ConsoleAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/h2/H2ConsoleAutoConfiguration.java @@ -37,7 +37,7 @@ import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; /** - * {@link EnableAutoConfiguration Auto-configuration} for H2's web console + * {@link EnableAutoConfiguration Auto-configuration} for H2's web console. * * @author Andy Wilkinson * @since 1.3.0 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/h2/H2ConsoleProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/h2/H2ConsoleProperties.java index 498706ad23f..864f5709a21 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/h2/H2ConsoleProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/h2/H2ConsoleProperties.java @@ -22,7 +22,7 @@ import javax.validation.constraints.Pattern; import org.springframework.boot.context.properties.ConfigurationProperties; /** - * Configuration properties for H2's console + * Configuration properties for H2's console. * * @author Andy Wilkinson * @since 1.3.0 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jackson/JacksonProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jackson/JacksonProperties.java index f687648aac8..80275e70f17 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jackson/JacksonProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jackson/JacksonProperties.java @@ -31,7 +31,7 @@ import com.fasterxml.jackson.databind.MapperFeature; import com.fasterxml.jackson.databind.SerializationFeature; /** - * Configuration properties to configure Jackson + * Configuration properties to configure Jackson. * * @author Andy Wilkinson * @author Marcel Overdijk diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfiguration.java index ecf3df67e7a..c4077a1435c 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfiguration.java @@ -188,6 +188,8 @@ public class DataSourceAutoConfiguration { /** * Returns the class loader for the {@link DataSource} class. Used to ensure that * the driver class can actually be loaded by the data source. + * @param context the condition context + * @return the class loader */ private ClassLoader getDataSourceClassLoader(ConditionContext context) { Class dataSourceClass = new DataSourceBuilder(context.getClassLoader()) @@ -222,7 +224,7 @@ public class DataSourceAutoConfiguration { /** * {@link Condition} to detect when a {@link DataSource} is available (either because - * the user provided one or because one will be auto-configured) + * the user provided one or because one will be auto-configured). */ @Order(Ordered.LOWEST_PRECEDENCE - 10) static class DataSourceAvailableCondition extends SpringBootCondition { 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 cfa154ef88b..06944593a9a 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 @@ -69,22 +69,22 @@ enum DatabaseDriver { GOOGLE("com.google.appengine.api.rdbms.AppEngineDriver"), /** - * Oracle + * Oracle. */ ORACLE("oracle.jdbc.OracleDriver", "oracle.jdbc.xa.client.OracleXADataSource"), /** - * Postres + * Postres. */ POSTGRESQL("org.postgresql.Driver", "org.postgresql.xa.PGXADataSource"), /** - * JTDS + * JTDS. */ JTDS("net.sourceforge.jtds.jdbc.Driver"), /** - * SQL Server + * SQL Server. */ SQLSERVER("com.microsoft.sqlserver.jdbc.SQLServerDriver", "com.microsoft.sqlserver.jdbc.SQLServerXADataSource"); @@ -103,14 +103,16 @@ enum DatabaseDriver { } /** - * @return the driverClassName or {@code null} + * Return the driver class name. + * @return the class name or {@code null} */ public String getDriverClassName() { return this.driverClassName; } /** - * @return the xaDataSourceClassName or {@code null} + * Return the XA driver source class name. + * @return the class name or {@code null} */ public String getXaDataSourceClassName() { return this.xaDataSourceClassName; diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DriverClassNameProvider.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DriverClassNameProvider.java index 540b6d32be9..fbbcf04b948 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DriverClassNameProvider.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jdbc/DriverClassNameProvider.java @@ -53,7 +53,7 @@ class DriverClassNameProvider { } /** - * Find a JDBC driver class name based on given JDBC URL + * Find a JDBC driver class name based on given JDBC URL. * @param jdbcUrl JDBC URL * @return driver class name or null if not found */ diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/JndiConnectionFactoryAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/JndiConnectionFactoryAutoConfiguration.java index 83a17d32631..6067b4627dd 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/JndiConnectionFactoryAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/JndiConnectionFactoryAutoConfiguration.java @@ -82,7 +82,7 @@ public class JndiConnectionFactoryAutoConfiguration { } /** - * Condition for JNDI name or a specific property + * Condition for JNDI name or a specific property. */ static class JndiOrPropertyCondition extends AnyNestedCondition { diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQProperties.java index 35b010e3072..f217ddb98b4 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/activemq/ActiveMQProperties.java @@ -19,7 +19,7 @@ package org.springframework.boot.autoconfigure.jms.activemq; import org.springframework.boot.context.properties.ConfigurationProperties; /** - * Configuration properties for ActiveMQ + * Configuration properties for ActiveMQ. * * @author Greg Turnquist * @author Stephane Nicoll diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisConnectionFactoryFactory.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisConnectionFactoryFactory.java index 4c29ea2bb23..ae87dc9bad7 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisConnectionFactoryFactory.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisConnectionFactoryFactory.java @@ -92,6 +92,7 @@ class ArtemisConnectionFactoryFactory { /** * Deduce the {@link ArtemisMode} to use if none has been set. + * @return the mode */ private ArtemisMode deduceMode() { if (this.properties.getEmbedded().isEnabled() diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisProperties.java index 249d6f0d8c7..061ce4ae91e 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/artemis/ArtemisProperties.java @@ -25,7 +25,7 @@ import org.apache.activemq.artemis.core.remoting.impl.invm.TransportConstants; import org.springframework.boot.context.properties.ConfigurationProperties; /** - * Configuration properties for Artemis + * Configuration properties for Artemis. * * @author Eddú Meléndez * @author Stephane Nicoll diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQConnectionFactoryFactory.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQConnectionFactoryFactory.java index e4c850644e0..d76587c527f 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQConnectionFactoryFactory.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQConnectionFactoryFactory.java @@ -92,6 +92,7 @@ class HornetQConnectionFactoryFactory { /** * Deduce the {@link HornetQMode} to use if none has been set. + * @return the mode */ private HornetQMode deduceMode() { if (this.properties.getEmbedded().isEnabled() diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQProperties.java index e6726258acf..f2f887d335e 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jms/hornetq/HornetQProperties.java @@ -25,7 +25,7 @@ import org.hornetq.core.remoting.impl.invm.TransportConstants; import org.springframework.boot.context.properties.ConfigurationProperties; /** - * Configuration properties for HornetQ + * Configuration properties for HornetQ. * * @author Stephane Nicoll * @since 1.1.0 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jmx/ParentAwareNamingStrategy.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jmx/ParentAwareNamingStrategy.java index 7977ba0a177..5c6c5069bb1 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jmx/ParentAwareNamingStrategy.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jmx/ParentAwareNamingStrategy.java @@ -48,7 +48,8 @@ public class ParentAwareNamingStrategy extends MetadataNamingStrategy implements } /** - * @param ensureUniqueRuntimeObjectNames the ensureUniqueRuntimeObjectNames to set + * Set if unique runtime object names should be ensured. + * @param ensureUniqueRuntimeObjectNames {@code true} if unique names should ensured. */ public void setEnsureUniqueRuntimeObjectNames(boolean ensureUniqueRuntimeObjectNames) { this.ensureUniqueRuntimeObjectNames = ensureUniqueRuntimeObjectNames; diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoProperties.java index 9630d7bd324..e74b2c176e4 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoProperties.java @@ -183,7 +183,7 @@ public class MongoProperties { } /** - * Creates a {@link MongoClient} using the given {@code options} + * Creates a {@link MongoClient} using the given {@code options}. * * @param options the options * @return the Mongo client diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoProperties.java index 2c012bbee9e..912dcbb3879 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoProperties.java @@ -25,7 +25,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties; import de.flapdoodle.embed.mongo.distribution.Feature; /** - * Configuration properties for Embedded Mongo + * Configuration properties for Embedded Mongo. * * @author Andy Wilkinson * @since 1.3.0 @@ -60,4 +60,4 @@ public class EmbeddedMongoProperties { this.features = features; } -} \ No newline at end of file +} diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/MustacheResourceTemplateLoader.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/MustacheResourceTemplateLoader.java index e20a2986205..79858b38259 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/MustacheResourceTemplateLoader.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/MustacheResourceTemplateLoader.java @@ -59,14 +59,16 @@ public class MustacheResourceTemplateLoader implements TemplateLoader, } /** - * @param charSet the charSet to set + * Set the charset. + * @param charSet the charset */ public void setCharset(String charSet) { this.charSet = charSet; } /** - * @param resourceLoader the resourceLoader to set + * Set the resource loader. + * @param resourceLoader the resource loader */ @Override public void setResourceLoader(ResourceLoader resourceLoader) { diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/MustacheTemplateAvailabilityProvider.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/MustacheTemplateAvailabilityProvider.java index 7ca6386db09..f28b5695109 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/MustacheTemplateAvailabilityProvider.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/MustacheTemplateAvailabilityProvider.java @@ -23,7 +23,7 @@ import org.springframework.util.ClassUtils; /** * {@link TemplateAvailabilityProvider} that provides availability information for - * Mustache view templates + * Mustache view templates. * * @author Dave Syer * @since 1.2.2 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/web/MustacheView.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/web/MustacheView.java index 4d8b9ff0f4d..afb9802dc29 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/web/MustacheView.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/web/MustacheView.java @@ -39,8 +39,8 @@ public class MustacheView extends AbstractTemplateView { /** * Create a new {@link MustacheView} instance. - * @see #setTemplate(Template) * @since 1.2.5 + * @see #setTemplate(Template) */ public MustacheView() { } diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/web/MustacheViewResolver.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/web/MustacheViewResolver.java index da4a705ee40..a04dc52d619 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/web/MustacheViewResolver.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mustache/web/MustacheViewResolver.java @@ -55,14 +55,16 @@ public class MustacheViewResolver extends UrlBasedViewResolver { } /** - * @param compiler the compiler to set + * Set the compiler. + * @param compiler the compiler */ public void setCompiler(Compiler compiler) { this.compiler = compiler; } /** - * @param charset the charset to set + * Set the charset. + * @param charset the charset */ public void setCharset(String charset) { this.charset = charset; diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/JpaBaseConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/JpaBaseConfiguration.java index c39d7542a2e..97364744e85 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/JpaBaseConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/JpaBaseConfiguration.java @@ -141,7 +141,8 @@ public abstract class JpaBaseConfiguration implements BeanFactoryAware { } /** - * @return the jtaTransactionManager or {@code null} + * Return the JTA transaction manager. + * @return the transaction manager or {@code null} */ protected JtaTransactionManager getJtaTransactionManager() { return this.jtaTransactionManager; diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/sendgrid/SendGridAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/sendgrid/SendGridAutoConfiguration.java index f41377e7f18..c45d20456de 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/sendgrid/SendGridAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/sendgrid/SendGridAutoConfiguration.java @@ -30,7 +30,7 @@ import org.springframework.context.annotation.Configuration; import com.sendgrid.SendGrid; /** - * {@link EnableAutoConfiguration Auto-configuration} for SendGrid + * {@link EnableAutoConfiguration Auto-configuration} for SendGrid. * * @author Maciej Walkowiak * @since 1.3.0 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/solr/SolrAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/solr/SolrAutoConfiguration.java index 4814bc44da0..f49f7e69071 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/solr/SolrAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/solr/SolrAutoConfiguration.java @@ -31,7 +31,7 @@ import org.springframework.context.annotation.Configuration; import org.springframework.util.StringUtils; /** - * {@link EnableAutoConfiguration Auto-configuration} for Solr + * {@link EnableAutoConfiguration Auto-configuration} for Solr. * * @author Christoph Strobl * @since 1.1.0 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/template/TemplateAvailabilityProvider.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/template/TemplateAvailabilityProvider.java index 07e800da400..9f01d70c25d 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/template/TemplateAvailabilityProvider.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/template/TemplateAvailabilityProvider.java @@ -21,7 +21,7 @@ import org.springframework.core.io.ResourceLoader; /** * Indicates the availability of view templates for a particular templating engine such as - * FreeMarker or Thymeleaf + * FreeMarker or Thymeleaf. * * @author Andy Wilkinson * @since 1.1.0 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafTemplateAvailabilityProvider.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafTemplateAvailabilityProvider.java index 5ff9fd55309..a4d7cc032dc 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafTemplateAvailabilityProvider.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafTemplateAvailabilityProvider.java @@ -23,7 +23,7 @@ import org.springframework.util.ClassUtils; /** * {@link TemplateAvailabilityProvider} that provides availability information for - * Thymeleaf view templates + * Thymeleaf view templates. * * @author Andy Wilkinson * @since 1.1.0 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/velocity/VelocityProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/velocity/VelocityProperties.java index 1e7b5317ec9..adfe733cb02 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/velocity/VelocityProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/velocity/VelocityProperties.java @@ -24,7 +24,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.web.servlet.view.velocity.VelocityViewResolver; /** - * {@link ConfigurationProperties} for configuring Velocity + * {@link ConfigurationProperties} for configuring Velocity. * * @author Andy Wilkinson * @since 1.1.0 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/velocity/VelocityTemplateAvailabilityProvider.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/velocity/VelocityTemplateAvailabilityProvider.java index 79aa84de469..ce19cf48942 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/velocity/VelocityTemplateAvailabilityProvider.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/velocity/VelocityTemplateAvailabilityProvider.java @@ -23,7 +23,7 @@ import org.springframework.util.ClassUtils; /** * {@link TemplateAvailabilityProvider} that provides availability information for - * Velocity view templates + * Velocity view templates. * * @author Andy Wilkinson * @since 1.1.0 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/GsonHttpMessageConvertersConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/GsonHttpMessageConvertersConfiguration.java index 4456b80403a..63cf383f1c2 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/GsonHttpMessageConvertersConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/GsonHttpMessageConvertersConfiguration.java @@ -30,7 +30,7 @@ import org.springframework.http.converter.json.MappingJackson2HttpMessageConvert import com.google.gson.Gson; /** - * Configuration for HTTP Message converters that use Gson + * Configuration for HTTP Message converters that use Gson. * * @author Andy Wilkinson * @since 1.2.2 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/JacksonHttpMessageConvertersConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/JacksonHttpMessageConvertersConfiguration.java index a1bd62b6f4b..1ce89026992 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/JacksonHttpMessageConvertersConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/JacksonHttpMessageConvertersConfiguration.java @@ -30,7 +30,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.dataformat.xml.XmlMapper; /** - * Configuration for HTTP message converters that use Jackson + * Configuration for HTTP message converters that use Jackson. * * @author Andy Wilkinson * @since 1.2.2 diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/JspTemplateAvailabilityProvider.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/JspTemplateAvailabilityProvider.java index bf2a6bb4736..5d1ff661def 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/JspTemplateAvailabilityProvider.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/JspTemplateAvailabilityProvider.java @@ -23,7 +23,7 @@ import org.springframework.util.ClassUtils; /** * {@link TemplateAvailabilityProvider} that provides availability information for JSP - * view templates + * view templates. * * @author Andy Wilkinson * @author Stephane Nicoll diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/MultipartProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/MultipartProperties.java index eba3f978216..32cbcfa5031 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/MultipartProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/MultipartProperties.java @@ -119,7 +119,7 @@ public class MultipartProperties { } /** - * Create a new {@link MultipartConfigElement} using the + * Create a new {@link MultipartConfigElement} using the properties. * @return a new {@link MultipartConfigElement} configured using there properties */ public MultipartConfigElement createMultipartConfig() { diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java index 5bf8435c954..40e72b32704 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java @@ -206,7 +206,7 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer, Ord } /** - * Get the session timeout + * Get the session timeout. * @return the session timeout * @deprecated since 1.3.0 in favor of {@code session.timeout}. */ @@ -217,7 +217,7 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer, Ord } /** - * Set the session timeout + * Set the session timeout. * @param sessionTimeout the session timeout * @deprecated since 1.3.0 in favor of {@code session.timeout}. */ @@ -582,7 +582,7 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer, Ord } /** - * Set the format pattern for access logs + * Set the format pattern for access logs. * @param accessLogPattern the pattern for access logs * @deprecated since 1.3.0 in favor of {@code server.tomcat.accesslog.pattern} */ @@ -903,7 +903,7 @@ public class ServerProperties implements EmbeddedServletContainerCustomizer, Ord } /** - * Set the format pattern for access logs + * Set the format pattern for access logs. * @param accessLogPattern the pattern for access logs * @deprecated since 1.3.0 in favor of {@code server.undertow.accesslog.pattern} */ diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jdbc/metadata/AbstractDataSourcePoolMetadataTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jdbc/metadata/AbstractDataSourcePoolMetadataTests.java index dabce0ed54e..58458a64477 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jdbc/metadata/AbstractDataSourcePoolMetadataTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jdbc/metadata/AbstractDataSourcePoolMetadataTests.java @@ -30,8 +30,8 @@ import static org.junit.Assert.assertEquals; /** * Abstract base class for {@link DataSourcePoolMetadata} tests. * - * @author Stephane Nicoll * @param the data source pool metadata type + * @author Stephane Nicoll */ public abstract class AbstractDataSourcePoolMetadataTests> { diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/OAuth2AutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/OAuth2AutoConfigurationTests.java index 458c6b6b043..c890f150ed9 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/OAuth2AutoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/OAuth2AutoConfigurationTests.java @@ -292,7 +292,7 @@ public class OAuth2AutoConfigurationTests { /** * Connect to the oauth service, get a token, and then attempt some operations using * it. - * @param config + * @param config the client details. */ private void verifyAuthentication(ClientDetails config) { verifyAuthentication(config, HttpStatus.FORBIDDEN); diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/Command.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/Command.java index 7c97f4224b6..adf0fe1a4a9 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/Command.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/Command.java @@ -73,8 +73,8 @@ public interface Command { /** * Run the command. * @param args command arguments (this will not include the command itself) - * @throws Exception if the command fails * @return the outcome of the command + * @throws Exception if the command fails */ ExitStatus run(String... args) throws Exception; diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java index 88bd24d9157..a654d748aef 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/CommandRunner.java @@ -32,9 +32,9 @@ import org.springframework.util.StringUtils; /** * Main class used to run {@link Command}s. * + * @author Phillip Webb * @see #addCommand(Command) * @see CommandRunner#runAndHandleErrors(String[]) - * @author Phillip Webb */ public class CommandRunner implements Iterable { @@ -201,8 +201,8 @@ public class CommandRunner implements Iterable { /** * Parse the arguments and run a suitable command. * @param args the arguments - * @throws Exception if the command fails * @return the outcome of the command + * @throws Exception if the command fails */ protected ExitStatus run(String... args) throws Exception { if (args.length == 0) { diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/HelpExample.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/HelpExample.java index fbf69ebdd7e..5cd224a0ce3 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/HelpExample.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/HelpExample.java @@ -29,6 +29,7 @@ public class HelpExample { private final String example; /** + * Create a new {@link HelpExample} instance. * @param description The description (in the form "to ....") * @param example the example */ diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/grab/GrabCommand.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/grab/GrabCommand.java index 32d60a12d20..6dc7db64031 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/grab/GrabCommand.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/grab/GrabCommand.java @@ -32,7 +32,7 @@ import org.springframework.boot.cli.compiler.grape.RepositoryConfiguration; import joptsimple.OptionSet; /** - * {@link Command} to grab the dependencies of one or more Groovy scripts + * {@link Command} to grab the dependencies of one or more Groovy scripts. * * @author Andy Wilkinson */ diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitCommand.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitCommand.java index dd4819168ef..e278faa7687 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitCommand.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitCommand.java @@ -69,6 +69,9 @@ public class InitCommand extends OptionParsingCommand { return examples; } + /** + * {@link OptionHandler} for {@link InitCommand}. + */ static class InitOptionHandler extends OptionHandler { private final ServiceCapabilitiesReportGenerator serviceCapabilitiesReport; diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitializrService.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitializrService.java index 730e9c42aa6..5e90e1e94fd 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitializrService.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/InitializrService.java @@ -81,7 +81,7 @@ class InitializrService { } /** - * Generate a project based on the specified {@link ProjectGenerationRequest} + * Generate a project based on the specified {@link ProjectGenerationRequest}. * @param request the generation request * @return an entity defining the project * @throws IOException if generation fails @@ -166,14 +166,18 @@ class InitializrService { } /** - * Request the creation of the project using the specified URL + * Request the creation of the project using the specified URL. + * @param url the URL + * @return the response */ private CloseableHttpResponse executeProjectGenerationRequest(URI url) { return execute(new HttpGet(url), url, "generate project"); } /** - * Retrieves the meta-data of the service at the specified URL + * Retrieves the meta-data of the service at the specified URL. + * @param url the URL + * @return the response */ private CloseableHttpResponse executeInitializrMetadataRetrieval(String url) { HttpGet request = new HttpGet(url); diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerationRequest.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerationRequest.java index 0207dff3a22..5710116b493 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerationRequest.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerationRequest.java @@ -76,8 +76,8 @@ class ProjectGenerationRequest { /** * The URL of the service to use. - * @see #DEFAULT_SERVICE_URL * @return the service URL + * @see #DEFAULT_SERVICE_URL */ public String getServiceUrl() { return this.serviceUrl; @@ -299,7 +299,7 @@ class ProjectGenerationRequest { } /** - * Generates the URI to use to generate a project represented by this request + * Generates the URI to use to generate a project represented by this request. * @param metadata the metadata that describes the service * @return the project generation URI */ diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerationResponse.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerationResponse.java index d7520909a79..d0445409708 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerationResponse.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerationResponse.java @@ -19,7 +19,7 @@ package org.springframework.boot.cli.command.init; import org.apache.http.entity.ContentType; /** - * Represent the response of a {@link ProjectGenerationRequest} + * Represent the response of a {@link ProjectGenerationRequest}. * * @author Stephane Nicoll * @since 1.2.0 @@ -37,7 +37,7 @@ class ProjectGenerationResponse { } /** - * Return the {@link ContentType} of this instance + * Return the {@link ContentType} of this instance. * @return the content type */ public ContentType getContentType() { diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerator.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerator.java index 7392a4ad561..ee9a040836b 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerator.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/init/ProjectGenerator.java @@ -70,6 +70,9 @@ class ProjectGenerator { /** * Detect if the project should be extracted. + * @param request the generation request + * @param response the generation response + * @return if the project should be extracted */ private boolean shouldExtract(ProjectGenerationRequest request, ProjectGenerationResponse response) { diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/install/GroovyGrabDependencyResolver.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/install/GroovyGrabDependencyResolver.java index 9117b6ce3b2..bb6fb6843fd 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/install/GroovyGrabDependencyResolver.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/install/GroovyGrabDependencyResolver.java @@ -31,7 +31,7 @@ import org.springframework.boot.cli.compiler.GroovyCompiler; import org.springframework.boot.cli.compiler.GroovyCompilerConfiguration; /** - * A {@code DependencyResolver} implemented using Groovy's {@code @Grab} + * A {@code DependencyResolver} implemented using Groovy's {@code @Grab}. * * @author Dave Syer * @author Andy Wilkinson diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/install/UninstallCommand.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/install/UninstallCommand.java index f89abc296eb..a385cf3ed60 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/install/UninstallCommand.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/install/UninstallCommand.java @@ -28,7 +28,7 @@ import joptsimple.OptionSet; import joptsimple.OptionSpec; /** - * {@link Command} to uninstall dependencies from the CLI's lib directory + * {@link Command} to uninstall dependencies from the CLI's lib directory. * * @author Dave Syer * @author Andy Wilkinson diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/jar/JarCommand.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/jar/JarCommand.java index 7c0318489e2..02dc60d2403 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/jar/JarCommand.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/jar/JarCommand.java @@ -65,7 +65,7 @@ import joptsimple.OptionSet; import joptsimple.OptionSpec; /** - * {@link Command} to create a self-contained executable jar file from a CLI application + * {@link Command} to create a self-contained executable jar file from a CLI application. * * @author Andy Wilkinson * @author Phillip Webb diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/jar/ResourceMatcher.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/jar/ResourceMatcher.java index 593dc9397d5..e0ccc1b170d 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/jar/ResourceMatcher.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/jar/ResourceMatcher.java @@ -36,7 +36,7 @@ import org.springframework.util.AntPathMatcher; import org.springframework.util.StringUtils; /** - * Used to match resources for inclusion in a CLI application's jar file + * Used to match resources for inclusion in a CLI application's jar file. * * @author Andy Wilkinson */ diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options/CompilerOptionHandler.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options/CompilerOptionHandler.java index 287dcf6a98e..00d64f2a601 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options/CompilerOptionHandler.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options/CompilerOptionHandler.java @@ -22,7 +22,7 @@ import joptsimple.OptionSpec; /** * An {@link OptionHandler} for commands that result in the compilation of one or more - * Groovy scripts + * Groovy scripts. * * @author Andy Wilkinson * @author Dave Syer diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options/OptionHandler.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options/OptionHandler.java index acabb772594..c8adc185d87 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options/OptionHandler.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options/OptionHandler.java @@ -95,7 +95,7 @@ public class OptionHandler { * Run the command using the specified parsed {@link OptionSet}. * @param options the parsed option set * @return an ExitStatus - * @throws Exception + * @throws Exception in case of errors */ protected ExitStatus run(OptionSet options) throws Exception { if (this.closure != null) { diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options/OptionSetGroovyCompilerConfiguration.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options/OptionSetGroovyCompilerConfiguration.java index 7c07d7e74e2..fa528794d35 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options/OptionSetGroovyCompilerConfiguration.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options/OptionSetGroovyCompilerConfiguration.java @@ -28,7 +28,7 @@ import joptsimple.OptionSpec; /** * Simple adapter class to present an {@link OptionSet} as a - * {@link GroovyCompilerConfiguration} + * {@link GroovyCompilerConfiguration}. * * @author Andy Wilkinson */ diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/AnsiString.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/AnsiString.java index f2ebc6ba40a..48d1872b4b2 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/AnsiString.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/AnsiString.java @@ -42,7 +42,7 @@ class AnsiString { } /** - * Append text with the given ANSI codes + * Append text with the given ANSI codes. * @param text the text to append * @param codes the ANSI codes * @return this string diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/Shell.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/Shell.java index 6aa4ddd28ac..64f42cb915c 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/Shell.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/shell/Shell.java @@ -65,7 +65,7 @@ public class Shell { /** * Create a new {@link Shell} instance. - * @throws IOException + * @throws IOException in case of I/O errors */ Shell() throws IOException { attachSignalHandler(); @@ -174,7 +174,7 @@ public class Shell { } /** - * Final handle an interrup signal (CTRL-C) + * Final handle an interrup signal (CTRL-C). */ protected void handleSigInt() { if (this.commandRunner.handleSigInt()) { diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/status/ExitStatus.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/status/ExitStatus.java index 6a0dbda6e90..f206b20c89c 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/status/ExitStatus.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/status/ExitStatus.java @@ -27,12 +27,12 @@ package org.springframework.boot.cli.command.status; public final class ExitStatus { /** - * Generic "OK" exit status with zero exit code and {@literal hangup=false} + * Generic "OK" exit status with zero exit code and {@literal hangup=false}. */ public static ExitStatus OK = new ExitStatus(0, "OK"); /** - * Generic "not OK" exit status with non-zero exit code and {@literal hangup=true} + * Generic "not OK" exit status with non-zero exit code and {@literal hangup=true}. */ public static ExitStatus ERROR = new ExitStatus(-1, "ERROR", true); @@ -43,7 +43,7 @@ public final class ExitStatus { private final boolean hangup; /** - * Create a new ExitStatus with an exit code and name as specified. + * Create a new {@link ExitStatus} instance. * @param code the exit code * @param name the name */ @@ -52,6 +52,7 @@ public final class ExitStatus { } /** + * Create a new {@link ExitStatus} instance. * @param code the exit code * @param name the name * @param hangup true if it is OK for the caller to hangup @@ -63,7 +64,7 @@ public final class ExitStatus { } /** - * An exit code appropriate for use in System.exit() + * An exit code appropriate for use in {@code System.exit()}. * @return an exit code */ public int getCode() { @@ -71,7 +72,7 @@ public final class ExitStatus { } /** - * A name describing the outcome + * A name describing the outcome. * @return a name */ public String getName() { diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/test/TestRunner.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/test/TestRunner.java index 714bc1bcf6a..cce321351c5 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/test/TestRunner.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/test/TestRunner.java @@ -43,9 +43,9 @@ public class TestRunner { /** * Create a new {@link TestRunner} instance. - * @param configuration - * @param sources - * @param args + * @param configuration the configuration + * @param sources the sources + * @param args the args */ TestRunner(TestRunnerConfiguration configuration, String[] sources, String[] args) { this.sources = sources.clone(); diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyAutoConfigurationTransformation.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyAutoConfigurationTransformation.java index 0905c9fbc01..309aab4f7be 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyAutoConfigurationTransformation.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyAutoConfigurationTransformation.java @@ -38,6 +38,9 @@ import groovy.lang.GroovyClassLoader; @Order(DependencyAutoConfigurationTransformation.ORDER) public class DependencyAutoConfigurationTransformation implements ASTTransformation { + /** + * The order of the transformation. + */ public static final int ORDER = DependencyManagementBomTransformation.ORDER + 100; private final GroovyClassLoader loader; diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyCustomizer.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyCustomizer.java index 2166c828439..deca66587cd 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyCustomizer.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyCustomizer.java @@ -60,7 +60,7 @@ public class DependencyCustomizer { /** * Create a new nested {@link DependencyCustomizer}. - * @param parent + * @param parent the parent customizer */ protected DependencyCustomizer(DependencyCustomizer parent) { this.loader = parent.loader; diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyManagementBomTransformation.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyManagementBomTransformation.java index 86116999288..1eafdde9a62 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyManagementBomTransformation.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/DependencyManagementBomTransformation.java @@ -55,7 +55,7 @@ import org.springframework.core.annotation.Order; import groovy.grape.Grape; /** - * {@link ASTTransformation} for processing {@link DependencyManagementBom} annotations + * {@link ASTTransformation} for processing {@link DependencyManagementBom} annotations. * * @author Andy Wilkinson * @since 1.3.0 @@ -63,6 +63,9 @@ import groovy.grape.Grape; @Order(DependencyManagementBomTransformation.ORDER) public class DependencyManagementBomTransformation extends AnnotatedNodeASTTransformation { + /** + * The order of the transformation. + */ public static final int ORDER = Ordered.HIGHEST_PRECEDENCE; private static final Set DEPENDENCY_MANAGEMENT_BOM_ANNOTATION_NAMES = Collections diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/GroovyBeansTransformation.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/GroovyBeansTransformation.java index 0a4713abe4a..c35b1ab7d65 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/GroovyBeansTransformation.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/GroovyBeansTransformation.java @@ -42,6 +42,9 @@ import org.springframework.core.annotation.Order; @Order(GroovyBeansTransformation.ORDER) public class GroovyBeansTransformation implements ASTTransformation { + /** + * The order of the transformation. + */ public static final int ORDER = DependencyManagementBomTransformation.ORDER + 200; @Override diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/GroovyCompiler.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/GroovyCompiler.java index cb9347d869f..705c4c4a7a9 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/GroovyCompiler.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/GroovyCompiler.java @@ -171,8 +171,9 @@ public class GroovyCompiler { * returned from this method. * @param sources the sources to compile * @return compiled classes - * @throws CompilationFailedException - * @throws IOException + * @throws CompilationFailedException in case of compilation failures + * @throws IOException in case of I/O errors + * @throws CompilationFailedException in case of compilation errors */ public Class[] compile(String... sources) throws CompilationFailedException, IOException { diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/GroovyCompilerConfiguration.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/GroovyCompilerConfiguration.java index 0122b68895e..7741f3242cf 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/GroovyCompilerConfiguration.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/GroovyCompilerConfiguration.java @@ -59,7 +59,7 @@ public interface GroovyCompilerConfiguration { boolean isAutoconfigure(); /** - * Returns the classpath for local resources + * Returns the classpath for local resources. * @return a path for local resources */ String[] getClasspath(); diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/RepositoryConfigurationFactory.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/RepositoryConfigurationFactory.java index 188b15aca3b..d242aaa21dc 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/RepositoryConfigurationFactory.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/RepositoryConfigurationFactory.java @@ -47,6 +47,7 @@ public final class RepositoryConfigurationFactory { } /** + * Create a new default repository configuration. * @return the newly-created default repository configuration */ public static List createDefaultRepositoryConfiguration() { diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/ResolveDependencyCoordinatesTransformation.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/ResolveDependencyCoordinatesTransformation.java index 8f096757a6a..ba03583ab21 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/ResolveDependencyCoordinatesTransformation.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/ResolveDependencyCoordinatesTransformation.java @@ -41,6 +41,9 @@ import groovy.lang.Grab; public class ResolveDependencyCoordinatesTransformation extends AnnotatedNodeASTTransformation { + /** + * The order of the transformation. + */ public static final int ORDER = DependencyManagementBomTransformation.ORDER + 300; private static final Set GRAB_ANNOTATION_NAMES = Collections diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/SpringBootAstTransformation.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/SpringBootAstTransformation.java index af76633623f..2e8f4f65750 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/SpringBootAstTransformation.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/SpringBootAstTransformation.java @@ -20,7 +20,7 @@ import org.codehaus.groovy.transform.ASTTransformation; /** * Marker interface for AST transformations that should be installed automatically from - * META-INF/services + * {@code META-INF/services}. * * @author Dave Syer */ diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/JUnitCompilerAutoConfiguration.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/JUnitCompilerAutoConfiguration.java index 9785b531e2d..246d18c05ee 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/JUnitCompilerAutoConfiguration.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/JUnitCompilerAutoConfiguration.java @@ -24,7 +24,7 @@ import org.springframework.boot.cli.compiler.CompilerAutoConfiguration; import org.springframework.boot.cli.compiler.DependencyCustomizer; /** - * {@link CompilerAutoConfiguration} for JUnit + * {@link CompilerAutoConfiguration} for JUnit. * * @author Greg Turnquist */ diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpockCompilerAutoConfiguration.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpockCompilerAutoConfiguration.java index 197258b19af..0eab0ea6251 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpockCompilerAutoConfiguration.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpockCompilerAutoConfiguration.java @@ -24,7 +24,7 @@ import org.springframework.boot.cli.compiler.CompilerAutoConfiguration; import org.springframework.boot.cli.compiler.DependencyCustomizer; /** - * {@link CompilerAutoConfiguration} for Spock test framework + * {@link CompilerAutoConfiguration} for Spock test framework. * * @author Greg Turnquist */ diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringTestCompilerAutoConfiguration.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringTestCompilerAutoConfiguration.java index e361a3dc6b0..623bf8a4cbb 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringTestCompilerAutoConfiguration.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringTestCompilerAutoConfiguration.java @@ -32,7 +32,7 @@ import org.springframework.boot.cli.compiler.GroovyCompilerConfiguration; import groovy.lang.GroovyClassLoader; /** - * {@link CompilerAutoConfiguration} for Spring Test + * {@link CompilerAutoConfiguration} for Spring Test. * * @author Dave Syer * @since 1.1.0 diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/CompositeDependencyManagement.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/CompositeDependencyManagement.java index 7e11cead540..f6d19d5e35f 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/CompositeDependencyManagement.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/CompositeDependencyManagement.java @@ -22,7 +22,7 @@ import java.util.List; /** * {@link DependencyManagement} that delegates to one or more {@link DependencyManagement} - * instances + * instances. * * @author Andy Wilkinson * @since 1.3.0 diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/DependencyManagement.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/DependencyManagement.java index 5d1b4cc2ce8..72be46223af 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/DependencyManagement.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/DependencyManagement.java @@ -19,7 +19,7 @@ package org.springframework.boot.cli.compiler.dependencies; import java.util.List; /** - * An encapsulation of dependency management information + * An encapsulation of dependency management information. * * @author Andy Wilkinson * @since 1.3.0 diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/MavenModelDependencyManagement.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/MavenModelDependencyManagement.java index 88ad4ca0bc5..6a379c70f4d 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/MavenModelDependencyManagement.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/MavenModelDependencyManagement.java @@ -25,7 +25,7 @@ import org.apache.maven.model.Model; import org.springframework.boot.cli.compiler.dependencies.Dependency.Exclusion; /** - * {@link DependencyManagement} derived from a Maven {@link Model} + * {@link DependencyManagement} derived from a Maven {@link Model}. * * @author Andy Wilkinson * @since 1.3.0 diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/SpringBootDependenciesDependencyManagement.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/SpringBootDependenciesDependencyManagement.java index 8992d3fab6b..7bca1317a46 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/SpringBootDependenciesDependencyManagement.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/SpringBootDependenciesDependencyManagement.java @@ -24,7 +24,8 @@ import org.apache.maven.model.io.DefaultModelReader; import org.apache.maven.model.locator.DefaultModelLocator; /** - * {@link DependencyManagement} derived from the effective pom of spring-boot-dependencies + * {@link DependencyManagement} derived from the effective pom of + * {@code spring-boot-dependencies}. * * @author Andy Wilkinson * @since 1.3.0 diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/ProgressReporter.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/ProgressReporter.java index d6d1d8eb212..e0283979c59 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/ProgressReporter.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/ProgressReporter.java @@ -17,15 +17,15 @@ package org.springframework.boot.cli.compiler.grape; /** - * Reports progress on a dependency resolution operation + * Reports progress on a dependency resolution operation. * * @author Andy Wilkinson */ interface ProgressReporter { /** - * Notification that the operation has completed + * Notification that the operation has completed. */ void finished(); -} \ No newline at end of file +} diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/RepositoryConfiguration.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/RepositoryConfiguration.java index b3a01d3f227..8c1ec3393f5 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/RepositoryConfiguration.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/RepositoryConfiguration.java @@ -21,7 +21,7 @@ import java.net.URI; import org.springframework.util.ObjectUtils; /** - * The configuration of a repository + * The configuration of a repository. * * @author Andy Wilkinson */ @@ -47,7 +47,8 @@ public final class RepositoryConfiguration { } /** - * @return the name of the repository + * Return the name of the repository. + * @return the repository name */ public String getName() { return this.name; @@ -60,15 +61,16 @@ public final class RepositoryConfiguration { } /** - * @return the uri of the repository + * Return the URI of the repository. + * @return the repository URI */ public URI getUri() { return this.uri; } /** - * @return {@code true} if the repository should enable access to snapshots, - * {@code false} otherwise + * Return if the repository should enable access to snapshots. + * @return {@code true} if snapshot access is enabled */ public boolean getSnapshotsEnabled() { return this.snapshotsEnabled; diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/RepositorySystemSessionAutoConfiguration.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/RepositorySystemSessionAutoConfiguration.java index 3bfa90f82e6..44dc2c25c6a 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/RepositorySystemSessionAutoConfiguration.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/RepositorySystemSessionAutoConfiguration.java @@ -28,7 +28,7 @@ import org.eclipse.aether.RepositorySystem; public interface RepositorySystemSessionAutoConfiguration { /** - * Apply the configuration + * Apply the configuration. * @param session the repository system session * @param repositorySystem the repository system */ diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/SettingsXmlRepositorySystemSessionAutoConfiguration.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/SettingsXmlRepositorySystemSessionAutoConfiguration.java index 711521a4093..9d9d164ae64 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/SettingsXmlRepositorySystemSessionAutoConfiguration.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/grape/SettingsXmlRepositorySystemSessionAutoConfiguration.java @@ -24,7 +24,7 @@ import org.springframework.boot.cli.compiler.MavenSettingsReader; /** * Auto-configuration for a RepositorySystemSession that uses Maven's settings.xml to - * determine the configuration settings + * determine the configuration settings. * * @author Andy Wilkinson */ diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/jar/PackagedSpringApplicationLauncher.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/jar/PackagedSpringApplicationLauncher.java index 5454dbf4d20..d913a9ce9a9 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/jar/PackagedSpringApplicationLauncher.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/jar/PackagedSpringApplicationLauncher.java @@ -32,8 +32,14 @@ import org.springframework.boot.cli.app.SpringApplicationLauncher; */ public final class PackagedSpringApplicationLauncher { + /** + * The entry containing the source class. + */ public static final String SOURCE_ENTRY = "Spring-Application-Source-Classes"; + /** + * The entry containing the start class. + */ public static final String START_CLASS_ENTRY = "Start-Class"; private PackagedSpringApplicationLauncher() { diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/util/ResourceUtils.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/util/ResourceUtils.java index 4c7bca05150..2114bd0432d 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/util/ResourceUtils.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/util/ResourceUtils.java @@ -43,17 +43,17 @@ import org.springframework.util.StringUtils; public abstract class ResourceUtils { /** - * Pseudo URL prefix for loading from the class path: "classpath:" + * Pseudo URL prefix for loading from the class path: "classpath:". */ public static final String CLASSPATH_URL_PREFIX = "classpath:"; /** - * Pseudo URL prefix for loading all resources from the class path: "classpath*:" + * Pseudo URL prefix for loading all resources from the class path: "classpath*:". */ public static final String ALL_CLASSPATH_URL_PREFIX = "classpath*:"; /** - * URL prefix for loading from the file system: "file:" + * URL prefix for loading from the file system: "file:". */ public static final String FILE_URL_PREFIX = "file:"; diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/groovy/EnableDeviceResolver.java b/spring-boot-cli/src/main/java/org/springframework/boot/groovy/EnableDeviceResolver.java index 7d0d2c04bec..892f793e168 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/groovy/EnableDeviceResolver.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/groovy/EnableDeviceResolver.java @@ -26,6 +26,8 @@ import org.springframework.boot.cli.compiler.autoconfigure.SpringMobileCompilerA /** * Pseudo annotation used to trigger {@link SpringMobileCompilerAutoConfiguration}. + * + * @author Phillip Webb */ @Target(ElementType.TYPE) @Documented diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/DevToolsProperties.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/DevToolsProperties.java index fb62e77156a..8bf33b7e7c4 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/DevToolsProperties.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/DevToolsProperties.java @@ -54,7 +54,7 @@ public class DevToolsProperties { } /** - * Restart properties + * Restart properties. */ public static class Restart { @@ -173,7 +173,7 @@ public class DevToolsProperties { } /** - * LiveReload properties + * LiveReload properties. */ public static class Livereload { diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/OptionalLiveReloadServer.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/OptionalLiveReloadServer.java index ad91bca5cc2..736ce246b8d 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/OptionalLiveReloadServer.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/OptionalLiveReloadServer.java @@ -45,7 +45,7 @@ public class OptionalLiveReloadServer { /** * {@link PostConstruct} method to start the server if possible. - * @throws Exception + * @throws Exception in case of errors */ @PostConstruct public void startServer() throws Exception { diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/classpath/package-info.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/classpath/package-info.java index 4045a3bd37d..11d81330977 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/classpath/package-info.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/classpath/package-info.java @@ -15,7 +15,7 @@ */ /** - * Support for classpath monitoring + * Support for classpath monitoring. */ package org.springframework.boot.devtools.classpath; diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/filewatch/FileSystemWatcher.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/filewatch/FileSystemWatcher.java index c2d8f3c9895..7531e4ee048 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/filewatch/FileSystemWatcher.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/filewatch/FileSystemWatcher.java @@ -35,8 +35,8 @@ import org.springframework.util.Assert; * * @author Andy Clement * @author Phillip Webb - * @see FileChangeListener * @since 1.3.0 + * @see FileChangeListener */ public class FileSystemWatcher { diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/Connection.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/Connection.java index 7bdac362ce1..947eda4313a 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/Connection.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/Connection.java @@ -31,6 +31,8 @@ import org.apache.commons.logging.LogFactory; /** * A {@link LiveReloadServer} connection. + * + * @author Phillip Webb */ class Connection { @@ -58,7 +60,7 @@ class Connection { * @param socket the source socket * @param inputStream the socket input stream * @param outputStream the socket output stream - * @throws IOException + * @throws IOException in case of I/O errors */ Connection(Socket socket, InputStream inputStream, OutputStream outputStream) throws IOException { @@ -71,7 +73,7 @@ class Connection { /** * Run the connection. - * @throws Exception + * @throws Exception in case of errors */ public void run() throws Exception { if (this.header.contains("Upgrade: websocket") @@ -126,7 +128,7 @@ class Connection { /** * Trigger livereload for the client using this connection. - * @throws IOException + * @throws IOException in case of I/O errors */ public void triggerReload() throws IOException { if (this.webSocket) { @@ -152,7 +154,7 @@ class Connection { /** * Close the connection. - * @throws IOException + * @throws IOException in case of I/O errors */ public void close() throws IOException { this.running = false; diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/ConnectionInputStream.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/ConnectionInputStream.java index 4599f2fcefa..692118deec1 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/ConnectionInputStream.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/ConnectionInputStream.java @@ -40,7 +40,7 @@ class ConnectionInputStream extends FilterInputStream { * any HTTP content after the header since the initial request is usually just a * WebSocket upgrade. * @return the HTTP header - * @throws IOException + * @throws IOException in case of I/O errors */ public String readHeader() throws IOException { byte[] buffer = new byte[BUFFER_SIZE]; @@ -58,7 +58,7 @@ class ConnectionInputStream extends FilterInputStream { * @param buffer the destination buffer * @param offset the buffer offset * @param length the amount of data to read - * @throws IOException + * @throws IOException in case of I/O errors */ public void readFully(byte[] buffer, int offset, int length) throws IOException { while (length > 0) { @@ -72,7 +72,7 @@ class ConnectionInputStream extends FilterInputStream { * Read a single byte from the stream (checking that the end of the stream hasn't been * reached. * @return the content - * @throws IOException + * @throws IOException in case of I/O errors */ public int checkedRead() throws IOException { int b = read(); @@ -84,12 +84,12 @@ class ConnectionInputStream extends FilterInputStream { /** * Read a number of bytes from the stream (checking that the end of the stream hasn't - * been reached) + * been reached). * @param buffer the destination buffer * @param offset the buffer offset * @param length the length to read * @return the amount of data read - * @throws IOException + * @throws IOException in case of I/O errors */ public int checkedRead(byte[] buffer, int offset, int length) throws IOException { int amountRead = read(buffer, offset, length); diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/Frame.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/Frame.java index 73f7e864edf..e64fbd39088 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/Frame.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/Frame.java @@ -107,6 +107,9 @@ class Frame { return new Frame(Type.forCode(firstByte & 0x0F), payload); } + /** + * Frame types. + */ public enum Type { /** diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/LiveReloadServer.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/LiveReloadServer.java index fbbf4894b34..3ca377eaa5f 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/LiveReloadServer.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/livereload/LiveReloadServer.java @@ -38,8 +38,8 @@ import org.springframework.util.Assert; * A livereload server. * * @author Phillip Webb - * @see livereload.com * @since 1.3.0 + * @see livereload.com */ public class LiveReloadServer { @@ -109,7 +109,7 @@ public class LiveReloadServer { /** * Start the livereload server and accept incoming connections. - * @throws IOException + * @throws IOException in case of I/O errors */ public synchronized void start() throws IOException { Assert.state(!isStarted(), "Server already started"); @@ -137,7 +137,7 @@ public class LiveReloadServer { } /** - * Return the port that the server is listening on + * Return the port that the server is listening on. * @return the server port */ public int getPort() { @@ -165,7 +165,7 @@ public class LiveReloadServer { /** * Gracefully stop the livereload server. - * @throws IOException + * @throws IOException in case of I/O errors */ public synchronized void stop() throws IOException { if (this.listenThread != null) { @@ -231,7 +231,7 @@ public class LiveReloadServer { * @param inputStream the socket input stream * @param outputStream the socket output stream * @return a connection - * @throws IOException + * @throws IOException in case of I/O errors */ protected Connection createConnection(Socket socket, InputStream inputStream, OutputStream outputStream) throws IOException { @@ -303,7 +303,7 @@ public class LiveReloadServer { } /** - * {@link ThreadFactory} to create the worker threads, + * {@link ThreadFactory} to create the worker threads. */ private static class WorkerThreadFactory implements ThreadFactory { diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/client/LocalDebugPortAvailableCondition.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/client/LocalDebugPortAvailableCondition.java index fd8cdae4563..1b336c8d98b 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/client/LocalDebugPortAvailableCondition.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/client/LocalDebugPortAvailableCondition.java @@ -27,6 +27,8 @@ import org.springframework.core.type.AnnotatedTypeMetadata; /** * Condition used to check that the actual local port is available. + * + * @author Phillip Webb */ class LocalDebugPortAvailableCondition extends SpringBootCondition { diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/server/Dispatcher.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/server/Dispatcher.java index ff2eff62538..85b79ec644b 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/server/Dispatcher.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/server/Dispatcher.java @@ -55,7 +55,7 @@ public class Dispatcher { * @param request the request * @param response the response * @return {@code true} if the request was dispatched - * @throws IOException + * @throws IOException in case of I/O errors */ public boolean handle(ServerHttpRequest request, ServerHttpResponse response) throws IOException { diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/server/Handler.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/server/Handler.java index 3e316f6599d..1bff5b3f9c6 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/server/Handler.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/server/Handler.java @@ -33,7 +33,7 @@ public interface Handler { * Handle the request. * @param request the request * @param response the response - * @throws IOException + * @throws IOException in case of I/O errors */ void handle(ServerHttpRequest request, ServerHttpResponse response) throws IOException; diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/server/UrlHandlerMapper.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/server/UrlHandlerMapper.java index dc9f43f9554..a8a7753a726 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/server/UrlHandlerMapper.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/remote/server/UrlHandlerMapper.java @@ -20,7 +20,7 @@ import org.springframework.http.server.ServerHttpRequest; import org.springframework.util.Assert; /** - * {@link HandlerMapper} implementation that maps incoming URLs + * {@link HandlerMapper} implementation that maps incoming URLs. * * @author Rob Winch * @author Phillip Webb diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java index 09f280488c9..f60b9fcf26c 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/Restarter.java @@ -256,7 +256,7 @@ public class Restarter { /** * Start the application. * @param failureHandler a failure handler for application that won't start - * @throws Exception + * @throws Exception in case of errors */ protected void start(FailureHandler failureHandler) throws Exception { do { @@ -292,7 +292,7 @@ public class Restarter { * Relaunch the application using the specified classloader. * @param classLoader the classloader to use * @return any exception that caused the launch to fail or {@code null} - * @throws Exception + * @throws Exception in case of errors */ protected Throwable relaunch(ClassLoader classLoader) throws Exception { RestartLauncher launcher = new RestartLauncher(classLoader, this.mainClassName, @@ -304,7 +304,7 @@ public class Restarter { /** * Stop the application. - * @throws Exception + * @throws Exception in case of errors */ protected void stop() throws Exception { this.logger.debug("Stopping application"); diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/ClassLoaderFile.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/ClassLoaderFile.java index 395f60b4da9..920b7d1ff27 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/ClassLoaderFile.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/ClassLoaderFile.java @@ -25,8 +25,8 @@ import org.springframework.util.Assert; * files that have been added, modified or deleted since the original JAR was created. * * @author Phillip Webb - * @see ClassLoaderFileRepository * @since 1.3.0 + * @see ClassLoaderFileRepository */ public class ClassLoaderFile implements Serializable { diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/package-info.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/package-info.java index 39a1a7bd973..de67ff231df 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/package-info.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/package-info.java @@ -15,7 +15,7 @@ */ /** - * Classloaders used for reload support + * Classloaders used for reload support. */ package org.springframework.boot.devtools.restart.classloader; diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/package-info.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/package-info.java index f0af8ada766..52c268f89fa 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/package-info.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/package-info.java @@ -15,7 +15,7 @@ */ /** - * Application restart support + * Application restart support. */ package org.springframework.boot.devtools.restart; diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/server/HttpRestartServer.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/server/HttpRestartServer.java index 8db3d73b63c..9421de9e820 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/server/HttpRestartServer.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/server/HttpRestartServer.java @@ -64,7 +64,7 @@ public class HttpRestartServer { * Handle a server request. * @param request the request * @param response the response - * @throws IOException + * @throws IOException in case of I/O errors */ public void handle(ServerHttpRequest request, ServerHttpResponse response) throws IOException { diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/server/package-info.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/server/package-info.java index abd18bdf240..804c031e7a0 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/server/package-info.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/server/package-info.java @@ -15,7 +15,7 @@ */ /** - * Remote restart server + * Remote restart server. */ package org.springframework.boot.devtools.restart.server; diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/client/TunnelClient.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/client/TunnelClient.java index d1278d22d2e..34c68e955bd 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/client/TunnelClient.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/client/TunnelClient.java @@ -72,7 +72,7 @@ public class TunnelClient implements SmartInitializingSingleton { /** * Start the client and accept incoming connections on the port. - * @throws IOException + * @throws IOException in case of I/O errors */ public synchronized void start() throws IOException { Assert.state(this.serverThread == null, "Server already started"); @@ -85,7 +85,7 @@ public class TunnelClient implements SmartInitializingSingleton { /** * Stop the client, disconnecting any servers. - * @throws IOException + * @throws IOException in case of I/O errors */ public synchronized void stop() throws IOException { if (this.serverThread != null) { diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/client/TunnelConnection.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/client/TunnelConnection.java index 9884c3c401b..8ac5662b010 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/client/TunnelConnection.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/client/TunnelConnection.java @@ -34,7 +34,7 @@ public interface TunnelConnection { * @param closeable a closeable to call when the channel is closed * @return A {@link WritableByteChannel} that should be used to send any outgoing data * destined for the remote server - * @throws Exception + * @throws Exception in case of errors */ WritableByteChannel open(WritableByteChannel incomingChannel, Closeable closeable) throws Exception; diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/payload/HttpTunnelPayload.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/payload/HttpTunnelPayload.java index ca7eaaaedac..764dc201a59 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/payload/HttpTunnelPayload.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/payload/HttpTunnelPayload.java @@ -75,7 +75,7 @@ public class HttpTunnelPayload { /** * Assign this payload to the given {@link HttpOutputMessage}. * @param message the message to assign this payload to - * @throws IOException + * @throws IOException in case of I/O errors */ public void assignTo(HttpOutputMessage message) throws IOException { Assert.notNull(message, "Message must not be null"); @@ -93,7 +93,7 @@ public class HttpTunnelPayload { /** * Write the content of this payload to the given target channel. * @param channel the channel to write to - * @throws IOException + * @throws IOException in case of I/O errors */ public void writeTo(WritableByteChannel channel) throws IOException { Assert.notNull(channel, "Channel must not be null"); @@ -107,7 +107,7 @@ public class HttpTunnelPayload { * is no payload. * @param message the HTTP message * @return the payload or {@code null} - * @throws IOException + * @throws IOException in case of I/O errors */ public static HttpTunnelPayload get(HttpInputMessage message) throws IOException { long length = message.getHeaders().getContentLength(); @@ -131,7 +131,7 @@ public class HttpTunnelPayload { * the channel timed out whilst reading. * @param channel the source channel * @return payload data or {@code null} - * @throws IOException + * @throws IOException in case of I/O errors */ public static ByteBuffer getPayloadData(ReadableByteChannel channel) throws IOException { diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/HttpTunnelServer.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/HttpTunnelServer.java index 5f5f8a5c82d..6bae66bc5f0 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/HttpTunnelServer.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/HttpTunnelServer.java @@ -132,7 +132,7 @@ public class HttpTunnelServer { * Handle an incoming HTTP connection. * @param request the HTTP request * @param response the HTTP response - * @throws IOException + * @throws IOException in case of I/O errors */ public void handle(ServerHttpRequest request, ServerHttpResponse response) throws IOException { @@ -142,7 +142,7 @@ public class HttpTunnelServer { /** * Handle an incoming HTTP connection. * @param httpConnection the HTTP connection - * @throws IOException + * @throws IOException in case of I/O errors */ protected void handle(HttpConnection httpConnection) throws IOException { try { @@ -157,7 +157,7 @@ public class HttpTunnelServer { /** * Returns the active server thread, creating and starting it if necessary. * @return the {@code ServerThread} (never {@code null}) - * @throws IOException + * @throws IOException in case of I/O errors */ protected ServerThread getServerThread() throws IOException { synchronized (this) { @@ -316,7 +316,7 @@ public class HttpTunnelServer { /** * Handle an incoming {@link HttpConnection}. * @param httpConnection the connection to handle. - * @throws IOException + * @throws IOException in case of I/O errors */ public void handleIncomingHttp(HttpConnection httpConnection) throws IOException { if (this.closed) { @@ -446,7 +446,7 @@ public class HttpTunnelServer { /** * Send a HTTP status response. * @param status the status to send - * @throws IOException + * @throws IOException in case of I/O errors */ public void respond(HttpStatus status) throws IOException { Assert.notNull(status, "Status must not be null"); @@ -457,7 +457,7 @@ public class HttpTunnelServer { /** * Send a payload response. * @param payload the payload to send - * @throws IOException + * @throws IOException in case of I/O errors */ public void respond(HttpTunnelPayload payload) throws IOException { Assert.notNull(payload, "Payload must not be null"); diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/PortProvider.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/PortProvider.java index 0ddf1c25fd9..1f5298c3124 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/PortProvider.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/PortProvider.java @@ -26,7 +26,7 @@ package org.springframework.boot.devtools.tunnel.server; public interface PortProvider { /** - * Return the port number + * Return the port number. * @return the port number */ int getPort(); diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/TargetServerConnection.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/TargetServerConnection.java index 41bb5816559..69dcfaa5e47 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/TargetServerConnection.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/TargetServerConnection.java @@ -31,7 +31,7 @@ public interface TargetServerConnection { * Open a connection to the target server with the specified timeout. * @param timeout the read timeout * @return a {@link ByteChannel} providing read/write access to the server - * @throws IOException + * @throws IOException in case of I/O errors */ ByteChannel open(int timeout) throws IOException; diff --git a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java index 646c4deff1b..624e051ca06 100644 --- a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java +++ b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/livereload/LiveReloadServerTests.java @@ -154,7 +154,7 @@ public class LiveReloadServerTests { /** * Useful main method for manual testing against a real browser. * @param args main args - * @throws IOException + * @throws IOException in case of I/O errors */ public static void main(String[] args) throws IOException { LiveReloadServer server = new LiveReloadServer(); diff --git a/spring-boot-tools/spring-boot-antlib/src/main/java/org/springframework/boot/ant/FindMainClass.java b/spring-boot-tools/spring-boot-antlib/src/main/java/org/springframework/boot/ant/FindMainClass.java index b88b343acd1..381217b0a3f 100644 --- a/spring-boot-tools/spring-boot-antlib/src/main/java/org/springframework/boot/ant/FindMainClass.java +++ b/spring-boot-tools/spring-boot-antlib/src/main/java/org/springframework/boot/ant/FindMainClass.java @@ -90,7 +90,7 @@ public class FindMainClass extends Task { /** * Set the main class, which will cause the search to be bypassed. - * @param mainClass + * @param mainClass the main class name */ public void setMainClass(String mainClass) { this.mainClass = mainClass; @@ -98,15 +98,15 @@ public class FindMainClass extends Task { /** * Set the root location of classes to be searched. - * @param classesRoot + * @param classesRoot the root location */ public void setClassesRoot(File classesRoot) { this.classesRoot = classesRoot; } /** - * Set the property to set (if unset, result will be printed to the log). - * @param property + * Set the ANT property to set (if left unset, result will be printed to the log). + * @param property the ANT property to set */ public void setProperty(String property) { this.property = property; diff --git a/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/ConfigurationMetadataRepositoryJsonBuilder.java b/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/ConfigurationMetadataRepositoryJsonBuilder.java index 199e24e0980..5949b88ef5d 100644 --- a/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/ConfigurationMetadataRepositoryJsonBuilder.java +++ b/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/ConfigurationMetadataRepositoryJsonBuilder.java @@ -34,6 +34,9 @@ import org.json.JSONException; */ public final class ConfigurationMetadataRepositoryJsonBuilder { + /** + * UTF-8 Charset. + */ public static final Charset UTF_8 = Charset.forName("UTF-8"); private Charset defaultCharset = UTF_8; @@ -54,7 +57,7 @@ public final class ConfigurationMetadataRepositoryJsonBuilder { * Leaves the stream open when done. * @param inputStream the source input stream * @return this builder - * @throws IOException + * @throws IOException in case of I/O errors */ public ConfigurationMetadataRepositoryJsonBuilder withJsonResource( InputStream inputStream) throws IOException { @@ -71,7 +74,7 @@ public final class ConfigurationMetadataRepositoryJsonBuilder { * @param inputstream the source input stream * @param charset the charset of the input * @return this builder - * @throws IOException + * @throws IOException in case of I/O errors */ public ConfigurationMetadataRepositoryJsonBuilder withJsonResource( InputStream inputstream, Charset charset) throws IOException { diff --git a/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/ConfigurationMetadataSource.java b/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/ConfigurationMetadataSource.java index 81e304db3ff..9c1dad9537b 100644 --- a/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/ConfigurationMetadataSource.java +++ b/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/ConfigurationMetadataSource.java @@ -45,7 +45,7 @@ public class ConfigurationMetadataSource implements Serializable { private final Map properties = new HashMap(); /** - * The identifier of the group to which this source is associated + * The identifier of the group to which this source is associated. * @return the group id */ public String getGroupId() { diff --git a/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/JsonReader.java b/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/JsonReader.java index f3857f82c16..bd966de511e 100644 --- a/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/JsonReader.java +++ b/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/JsonReader.java @@ -28,7 +28,7 @@ import org.json.JSONArray; import org.json.JSONObject; /** - * Read standard json metadata format as {@link ConfigurationMetadataRepository} + * Read standard json metadata format as {@link ConfigurationMetadataRepository}. * * @author Stephane Nicoll * @since 1.3.0 diff --git a/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/RawConfigurationMetadata.java b/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/RawConfigurationMetadata.java index 7c148f6510f..f4057d37ae6 100644 --- a/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/RawConfigurationMetadata.java +++ b/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/RawConfigurationMetadata.java @@ -66,6 +66,7 @@ class RawConfigurationMetadata { /** * Resolve the name of an item against this instance. + * @param item the item to resolve * @see ConfigurationMetadataProperty#setName(String) */ private void resolveName(ConfigurationMetadataItem item) { diff --git a/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/MetadataStore.java b/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/MetadataStore.java index 3244c0891a9..8bfcca82414 100644 --- a/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/MetadataStore.java +++ b/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/MetadataStore.java @@ -33,7 +33,7 @@ import org.springframework.boot.configurationprocessor.metadata.InvalidConfigura import org.springframework.boot.configurationprocessor.metadata.JsonMarshaller; /** - * A {@code MetadataStore} is responsible for the storage of metadata on the filesystem + * A {@code MetadataStore} is responsible for the storage of metadata on the filesystem. * * @author Andy Wilkinson * @since 1.2.2 diff --git a/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/fieldvalues/javac/JavaCompilerFieldValuesParser.java b/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/fieldvalues/javac/JavaCompilerFieldValuesParser.java index 0a66edc6acd..177b9cdb68a 100644 --- a/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/fieldvalues/javac/JavaCompilerFieldValuesParser.java +++ b/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/fieldvalues/javac/JavaCompilerFieldValuesParser.java @@ -54,6 +54,9 @@ public class JavaCompilerFieldValuesParser implements FieldValuesParser { return Collections.emptyMap(); } + /** + * {@link TreeVisitor} to collect fields. + */ private static class FieldCollector implements TreeVisitor { private static final Map> WRAPPER_TYPES; diff --git a/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ConfigurationMetadata.java b/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ConfigurationMetadata.java index e9b4eb3cfc0..6b82979535a 100644 --- a/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ConfigurationMetadata.java +++ b/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ConfigurationMetadata.java @@ -84,14 +84,16 @@ public class ConfigurationMetadata { } /** - * @return the meta-data properties. + * Return item meta-data. + * @return the items */ public List getItems() { return flattenValues(this.items); } /** - * @return the meta-data hints. + * Return hint meta-data. + * @return the hints */ public List getHints() { return flattenValues(this.hints); diff --git a/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ItemHint.java b/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ItemHint.java index ab24934b69c..8847796f16b 100644 --- a/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ItemHint.java +++ b/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ItemHint.java @@ -88,6 +88,9 @@ public class ItemHint implements Comparable { + ", providers=" + this.providers + '}'; } + /** + * A hint for a value. + */ public static class ValueHint { private final Object value; @@ -115,6 +118,9 @@ public class ItemHint implements Comparable { } + /** + * A value provider. + */ public static class ValueProvider { private final String name; diff --git a/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ItemMetadata.java b/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ItemMetadata.java index 08fd9f734d1..c1a03dc57ef 100644 --- a/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ItemMetadata.java +++ b/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/ItemMetadata.java @@ -172,7 +172,17 @@ public class ItemMetadata implements Comparable { * The item type. */ public enum ItemType { - GROUP, PROPERTY + + /** + * Group item type. + */ + GROUP, + + /** + * Property item type. + */ + PROPERTY + } } diff --git a/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/TestProject.java b/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/TestProject.java index 0bfccd2f7c0..4176ee80247 100644 --- a/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/TestProject.java +++ b/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/TestProject.java @@ -160,7 +160,7 @@ public class TestProject { /** * Restore source code of given class to its original contents. * @param type the class to revert - * @throws IOException + * @throws IOException in case of I/O errors */ public void revert(Class type) throws IOException { Assert.assertTrue(getSourceFile(type).exists()); @@ -170,7 +170,7 @@ public class TestProject { /** * Add source code of given class to this project. * @param type the class to add - * @throws IOException + * @throws IOException in case of I/O errors */ public void add(Class type) throws IOException { Assert.assertFalse(getSourceFile(type).exists()); diff --git a/spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/repackage/RepackagePluginFeatures.java b/spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/repackage/RepackagePluginFeatures.java index 3bbea9a5ca9..fd0c45188f4 100644 --- a/spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/repackage/RepackagePluginFeatures.java +++ b/spring-boot-tools/spring-boot-gradle-plugin/src/main/groovy/org/springframework/boot/gradle/repackage/RepackagePluginFeatures.java @@ -45,6 +45,9 @@ import org.springframework.util.StringUtils; */ public class RepackagePluginFeatures implements PluginFeatures { + /** + * The name of the repackage task. + */ public static final String REPACKAGE_TASK_NAME = "bootRepackage"; @Override @@ -97,6 +100,7 @@ public class RepackagePluginFeatures implements PluginFeatures { /** * Register BootRepackage so that we can use task {@code foo(type: BootRepackage)}. + * @param project the source project */ private void registerRepackageTaskProperty(Project project) { project.getExtensions().getExtraProperties() @@ -104,7 +108,7 @@ public class RepackagePluginFeatures implements PluginFeatures { } /** - * Register task input/outputs when classifiers are used + * Register task input/outputs when classifiers are used. */ private static class RegisterInputsOutputsAction implements Action { diff --git a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/JarWriter.java b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/JarWriter.java index 75b9497fdc5..c0b729ea421 100644 --- a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/JarWriter.java +++ b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/JarWriter.java @@ -222,7 +222,7 @@ public class JarWriter { * delegate to this one. * @param entry the entry to write * @param entryWriter the entry writer or {@code null} if there is no content - * @throws IOException + * @throws IOException in case of I/O errors */ private void writeEntry(JarEntry entry, EntryWriter entryWriter) throws IOException { String parent = entry.getName(); @@ -251,9 +251,9 @@ public class JarWriter { private interface EntryWriter { /** - * Write entry data to the specified output stream + * Write entry data to the specified output stream. * @param outputStream the destination for the data - * @throws IOException + * @throws IOException in case of I/O errors */ void write(OutputStream outputStream) throws IOException; @@ -338,7 +338,7 @@ public class JarWriter { } /** - * Data holder for CRC and Size + * Data holder for CRC and Size. */ private static class CrcAndSize { diff --git a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/JvmUtils.java b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/JvmUtils.java index 5aead662e48..9c733d75ffd 100644 --- a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/JvmUtils.java +++ b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/JvmUtils.java @@ -29,7 +29,7 @@ import java.net.URLClassLoader; abstract class JvmUtils { /** - * Various search locations for tools, including the odd Java 6 OSX jar + * Various search locations for tools, including the odd Java 6 OSX jar. */ private static final String[] TOOLS_LOCATIONS = { "lib/tools.jar", "../lib/tools.jar", "../Classes/classes.jar" }; diff --git a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Layouts.java b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Layouts.java index 243cf742a70..344d5dfee4a 100644 --- a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Layouts.java +++ b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Layouts.java @@ -151,7 +151,7 @@ public final class Layouts { } /** - * Module layout (designed to be used as a "plug-in") + * Module layout (designed to be used as a "plug-in"). */ public static class Module implements Layout { diff --git a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Library.java b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Library.java index 9d5443ef65a..5bb2691ca48 100644 --- a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Library.java +++ b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Library.java @@ -70,29 +70,33 @@ public class Library { } /** - * @return the name of file as it should be written + * Return the name of file as it should be written. + * @return then name. */ public String getName() { return this.name; } /** - * @return the library file + * Return the library file. + * @return the file */ public File getFile() { return this.file; } /** - * @return the scope of the library + * Return the scope of the library. + * @return the scope */ public LibraryScope getScope() { return this.scope; } /** - * @return if the file cannot be used directly as a nested jar and needs to be + * Return if the file cannot be used directly as a nested jar and needs to be * unpacked. + * @return if unpack is required */ public boolean isUnpackRequired() { return this.unpackRequired; diff --git a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/MainClassFinder.java b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/MainClassFinder.java index 2dc64a08335..94dc3ad3031 100644 --- a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/MainClassFinder.java +++ b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/MainClassFinder.java @@ -102,10 +102,11 @@ public abstract class MainClassFinder { /** * Perform the given callback operation on all main classes from the given root * folder. + * @param the result type * @param rootFolder the root folder * @param callback the callback * @return the first callback result or {@code null} - * @throws IOException + * @throws IOException in case of I/O errors */ static T doWithMainClasses(File rootFolder, ClassNameCallback callback) throws IOException { @@ -190,11 +191,12 @@ public abstract class MainClassFinder { /** * Perform the given callback operation on all main classes from the given jar. + * @param the result type * @param jarFile the jar file to search * @param classesLocation the location within the jar containing classes * @param callback the callback * @return the first callback result or {@code null} - * @throws IOException + * @throws IOException in case of I/O errors */ static T doWithMainClasses(JarFile jarFile, String classesLocation, ClassNameCallback callback) throws IOException { @@ -316,7 +318,7 @@ public abstract class MainClassFinder { public interface ClassNameCallback { /** - * Handle the specified class name + * Handle the specified class name. * @param className the class name * @return a non-null value if processing should end or {@code null} to continue */ diff --git a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Repackager.java b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Repackager.java index 0d3acaf16ef..1214260207a 100644 --- a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Repackager.java +++ b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/Repackager.java @@ -90,7 +90,7 @@ public class Repackager { } /** - * Repackage the source file so that it can be run using '{@literal java -jar}' + * Repackage the source file so that it can be run using '{@literal java -jar}'. * @param libraries the libraries required to run the archive * @throws IOException if the file cannot be repackaged */ @@ -100,7 +100,7 @@ public class Repackager { /** * Repackage to the given destination so that it can be launched using ' - * {@literal java -jar}' + * {@literal java -jar}'. * @param destination the destination file (may be the same as the source) * @param libraries the libraries required to run the archive * @throws IOException if the file cannot be repackaged @@ -111,7 +111,7 @@ public class Repackager { /** * Repackage to the given destination so that it can be launched using ' - * {@literal java -jar}' + * {@literal java -jar}'. * @param destination the destination file (may be the same as the source) * @param libraries the libraries required to run the archive * @param launchScript an optional launch script prepended to the front of the jar diff --git a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/RunProcess.java b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/RunProcess.java index b14602a90e0..2396e0e4ee6 100644 --- a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/RunProcess.java +++ b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/RunProcess.java @@ -155,23 +155,23 @@ public class RunProcess { } /** - * @return the running process or {@code null} + * Return the running process. + * @return the process or {@code null} */ public Process getRunningProcess() { return this.process; } /** - * @return {@code true} if the process was stopped. + * Return if the process was stopped. + * @return {@code true} if stopped */ public boolean handleSigInt() { - // if the process has just ended, probably due to this SIGINT, consider handled. if (hasJustEnded()) { return true; } return doKill(); - } /** diff --git a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/SignalUtils.java b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/SignalUtils.java index 6cb91891822..ad2c0c6db22 100644 --- a/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/SignalUtils.java +++ b/spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/SignalUtils.java @@ -34,7 +34,7 @@ public final class SignalUtils { } /** - * Handle {@literal INT} signals by calling the specified {@link Runnable} + * Handle {@literal INT} signals by calling the specified {@link Runnable}. * @param runnable the runnable to call on SIGINT. */ public static void attachSignalHandler(final Runnable runnable) { diff --git a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/JavaAgentDetector.java b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/JavaAgentDetector.java index 703a7838f78..8fa5b9abb74 100644 --- a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/JavaAgentDetector.java +++ b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/JavaAgentDetector.java @@ -19,7 +19,7 @@ package org.springframework.boot.loader; import java.net.URL; /** - * A strategy for detecting Java agents + * A strategy for detecting Java agents. * * @author Andy Wilkinson * @since 1.1.0 diff --git a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/Launcher.java b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/Launcher.java index 81111534772..29c01b57378 100644 --- a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/Launcher.java +++ b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/Launcher.java @@ -81,7 +81,7 @@ public abstract class Launcher { } /** - * Create a classloader for the specified URLs + * Create a classloader for the specified URLs. * @param urls the URLs * @return the classloader * @throws Exception if the classloader cannot be created diff --git a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java index 6de5327151a..52db6bf55ce 100644 --- a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java +++ b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java @@ -112,7 +112,7 @@ public class PropertiesLauncher extends Launcher { /** * Properties key for config file location (including optional classpath:, file: or - * URL prefix) + * URL prefix). */ public static final String CONFIG_LOCATION = "loader.config.location"; diff --git a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/Archive.java b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/Archive.java index 45fc4fb9215..dd259497f5a 100644 --- a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/Archive.java +++ b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/archive/Archive.java @@ -113,7 +113,7 @@ public abstract class Archive { boolean isDirectory(); /** - * Returns the name of the entry + * Returns the name of the entry. * @return the name of the entry */ AsciiBytes getName(); diff --git a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/data/RandomAccessDataFile.java b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/data/RandomAccessDataFile.java index 81922a6c944..524c0491ee6 100644 --- a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/data/RandomAccessDataFile.java +++ b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/data/RandomAccessDataFile.java @@ -74,6 +74,7 @@ public class RandomAccessDataFile implements RandomAccessData { /** * Private constructor used to create a {@link #getSubsection(long, long) subsection}. + * @param file the underlying file * @param pool the underlying pool * @param offset the offset of the section * @param length the length of the section @@ -158,7 +159,7 @@ public class RandomAccessDataFile implements RandomAccessData { * @param len the length of data to read * @return the number of bytes read into {@code b} or the actual read byte if * {@code b} is {@code null}. Returns -1 when the end of the stream is reached - * @throws IOException + * @throws IOException in case of I/O errors */ public int doRead(byte[] b, int off, int len) throws IOException { if (len == 0) { @@ -213,7 +214,7 @@ public class RandomAccessDataFile implements RandomAccessData { } /** - * Move the stream position forwards the specified amount + * Move the stream position forwards the specified amount. * @param amount the amount to move * @return the amount moved */ diff --git a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/CentralDirectoryEndRecord.java b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/CentralDirectoryEndRecord.java index 00a64abb56d..a3d5d792fc4 100644 --- a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/CentralDirectoryEndRecord.java +++ b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/CentralDirectoryEndRecord.java @@ -51,7 +51,7 @@ class CentralDirectoryEndRecord { * {@link RandomAccessData}, searching backwards from the end until a valid block is * located. * @param data the source data - * @throws IOException + * @throws IOException in case of I/O errors */ CentralDirectoryEndRecord(RandomAccessData data) throws IOException { this.block = createBlockFromEndOfData(data, READ_BLOCK_SIZE); diff --git a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarEntryData.java b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarEntryData.java index 15aad986a6a..d46d31bcd44 100644 --- a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarEntryData.java +++ b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/JarEntryData.java @@ -97,9 +97,10 @@ public final class JarEntryData { } /** - * @return the underlying {@link RandomAccessData} for this entry. Generally this + * Return the underlying {@link RandomAccessData} for this entry. Generally this * method should not be called directly and instead data should be accessed via * {@link JarFile#getInputStream(ZipEntry)}. + * @return the data * @throws IOException if the data cannot be read */ public RandomAccessData getData() throws IOException { @@ -200,7 +201,7 @@ public final class JarEntryData { * @param source the source {@link JarFile} * @param inputStream the input stream to load data from * @return a {@link JarEntryData} or {@code null} - * @throws IOException + * @throws IOException in case of I/O errors */ static JarEntryData fromInputStream(JarFile source, InputStream inputStream) throws IOException { diff --git a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/util/SystemPropertyUtils.java b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/util/SystemPropertyUtils.java index be05d03be8c..7c218154fee 100644 --- a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/util/SystemPropertyUtils.java +++ b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/util/SystemPropertyUtils.java @@ -38,17 +38,17 @@ import java.util.Set; public abstract class SystemPropertyUtils { /** - * Prefix for system property placeholders: "${" + * Prefix for system property placeholders: "${". */ public static final String PLACEHOLDER_PREFIX = "${"; /** - * Suffix for system property placeholders: "}" + * Suffix for system property placeholders: "}". */ public static final String PLACEHOLDER_SUFFIX = "}"; /** - * Value separator for system property placeholders: ":" + * Value separator for system property placeholders: ":". */ public static final String VALUE_SEPARATOR = ":"; @@ -59,9 +59,9 @@ public abstract class SystemPropertyUtils { * system property values. * @param text the String to resolve * @return the resolved String + * @throws IllegalArgumentException if there is an unresolvable placeholder * @see #PLACEHOLDER_PREFIX * @see #PLACEHOLDER_SUFFIX - * @throws IllegalArgumentException if there is an unresolvable placeholder */ public static String resolvePlaceholders(String text) { if (text == null) { @@ -76,9 +76,9 @@ public abstract class SystemPropertyUtils { * @param properties a properties instance to use in addition to System * @param text the String to resolve * @return the resolved String + * @throws IllegalArgumentException if there is an unresolvable placeholder * @see #PLACEHOLDER_PREFIX * @see #PLACEHOLDER_SUFFIX - * @throws IllegalArgumentException if there is an unresolvable placeholder */ public static String resolvePlaceholders(Properties properties, String text) { if (text == null) { diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/AbstractRunMojo.java b/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/AbstractRunMojo.java index b6019cee89b..f734cb3845e 100644 --- a/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/AbstractRunMojo.java +++ b/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/AbstractRunMojo.java @@ -217,8 +217,8 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo { /** * Run with a forked VM, using the specified command line arguments. * @param args the arguments (JVM arguments and application arguments) - * @throws MojoExecutionException - * @throws MojoFailureException + * @throws MojoExecutionException in case of MOJO execution errors + * @throws MojoFailureException in case of MOJO failures */ protected abstract void runWithForkedJvm(List args) throws MojoExecutionException, MojoFailureException; @@ -227,8 +227,8 @@ public abstract class AbstractRunMojo extends AbstractDependencyFilterMojo { * Run with the current VM, using the specified arguments. * @param startClassName the class to run * @param arguments the class arguments - * @throws MojoExecutionException - * @throws MojoFailureException + * @throws MojoExecutionException in case of MOJO execution errors + * @throws MojoFailureException in case of MOJO failures */ protected abstract void runWithMavenJvm(String startClassName, String... arguments) throws MojoExecutionException, MojoFailureException; diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/ArtifactsLibraries.java b/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/ArtifactsLibraries.java index 50280ea7c86..c301b385fed 100644 --- a/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/ArtifactsLibraries.java +++ b/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/ArtifactsLibraries.java @@ -33,7 +33,7 @@ import org.springframework.boot.loader.tools.LibraryCallback; import org.springframework.boot.loader.tools.LibraryScope; /** - * {@link Libraries} backed by Maven {@link Artifact}s + * {@link Libraries} backed by Maven {@link Artifact}s. * * @author Phillip Webb * @author Andy Wilkinson diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/FilterableDependency.java b/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/FilterableDependency.java index a8a69a1b7e9..7a7bc8c9784 100644 --- a/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/FilterableDependency.java +++ b/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/FilterableDependency.java @@ -40,7 +40,7 @@ abstract class FilterableDependency { private String artifactId; /** - * The classifier of the artifact to exclude + * The classifier of the artifact to exclude. */ @Parameter private String classifier; diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/PropertiesMergingResourceTransformer.java b/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/PropertiesMergingResourceTransformer.java index 9adb0e6a385..cd2521d9c34 100644 --- a/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/PropertiesMergingResourceTransformer.java +++ b/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/PropertiesMergingResourceTransformer.java @@ -41,7 +41,8 @@ public class PropertiesMergingResourceTransformer implements ResourceTransformer private final Properties data = new Properties(); /** - * @return the data the properties being merged + * Return the data the properties being merged. + * @return the data */ public Properties getData() { return this.data; diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java b/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java index d1c7aa38599..1d5915ad0ca 100644 --- a/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java +++ b/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/RepackageMojo.java @@ -235,35 +235,38 @@ public class RepackageMojo extends AbstractDependencyFilterMojo { return null; } + /** + * Archive layout types. + */ public enum LayoutType { /** - * Jar Layout + * Jar Layout. */ JAR(new Layouts.Jar()), /** - * War Layout + * War Layout. */ WAR(new Layouts.War()), /** - * Zip Layout + * Zip Layout. */ ZIP(new Layouts.Expanded()), /** - * Dir Layout + * Dir Layout. */ DIR(new Layouts.Expanded()), /** - * Module Layout + * Module Layout. */ MODULE(new Layouts.Module()), /** - * No Layout + * No Layout. */ NONE(new Layouts.None()); diff --git a/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StartMojo.java b/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StartMojo.java index 7c60aba37b2..956382a5e2c 100644 --- a/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StartMojo.java +++ b/spring-boot-tools/spring-boot-maven-plugin/src/main/java/org/springframework/boot/maven/StartMojo.java @@ -250,12 +250,13 @@ public class StartMojo extends AbstractRunMojo { /** * Execute a task, retrying it on failure. + * @param the result type * @param wait the wait time * @param maxAttempts the maximum number of attempts * @param callback the task to execute (possibly multiple times). The callback should * return {@code null} to indicate that another attempt should be made * @return the result - * @throws Exception + * @throws Exception in case of execution errors */ public T execute(long wait, int maxAttempts, Callable callback) throws Exception { diff --git a/spring-boot/src/main/java/org/springframework/boot/ApplicationRunner.java b/spring-boot/src/main/java/org/springframework/boot/ApplicationRunner.java index 1765032b3e9..69fc8d5626c 100644 --- a/spring-boot/src/main/java/org/springframework/boot/ApplicationRunner.java +++ b/spring-boot/src/main/java/org/springframework/boot/ApplicationRunner.java @@ -26,8 +26,8 @@ import org.springframework.core.annotation.Order; * interface or {@link Order @Order} annotation. * * @author Phillip Webb - * @see CommandLineRunner * @since 1.3.0 + * @see CommandLineRunner */ public interface ApplicationRunner { diff --git a/spring-boot/src/main/java/org/springframework/boot/BeanDefinitionLoader.java b/spring-boot/src/main/java/org/springframework/boot/BeanDefinitionLoader.java index 2ec29e30b94..fd7d01aff7a 100644 --- a/spring-boot/src/main/java/org/springframework/boot/BeanDefinitionLoader.java +++ b/spring-boot/src/main/java/org/springframework/boot/BeanDefinitionLoader.java @@ -107,7 +107,7 @@ class BeanDefinitionLoader { /** * Set the environment to be used by the underlying readers and scanner. - * @param environment + * @param environment the environment */ public void setEnvironment(ConfigurableEnvironment environment) { this.annotatedReader.setEnvironment(environment); @@ -302,6 +302,9 @@ class BeanDefinitionLoader { } + /** + * Source for Bean definitions defined in Groovy. + */ protected interface GroovyBeanDefinitionSource { Closure getBeans(); diff --git a/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java b/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java index 5725d7c4af7..3e04228d4ed 100644 --- a/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java +++ b/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java @@ -144,9 +144,17 @@ import org.springframework.web.context.support.StandardServletEnvironment; */ public class SpringApplication { - private static final String DEFAULT_CONTEXT_CLASS = "org.springframework.context." + /** + * The class name of application context that will be used by default for non-web + * environments. + */ + public static final String DEFAULT_CONTEXT_CLASS = "org.springframework.context." + "annotation.AnnotationConfigApplicationContext"; + /** + * The class name of application context that will be used by default for web + * environments. + */ public static final String DEFAULT_WEB_CONTEXT_CLASS = "org.springframework." + "boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext"; @@ -293,11 +301,6 @@ public class SpringApplication { } } - /** - * @param listeners - * @param args - * @return - */ private ConfigurableApplicationContext doRun(SpringApplicationRunListeners listeners, String... args) { ConfigurableApplicationContext context; @@ -633,6 +636,7 @@ public class SpringApplication { } /** + * Get the bean definition registry. * @param context the application context * @return the BeanDefinitionRegistry if it can be determined */ diff --git a/spring-boot/src/main/java/org/springframework/boot/ansi/AnsiOutput.java b/spring-boot/src/main/java/org/springframework/boot/ansi/AnsiOutput.java index 16ff534367c..3b80900cd19 100644 --- a/spring-boot/src/main/java/org/springframework/boot/ansi/AnsiOutput.java +++ b/spring-boot/src/main/java/org/springframework/boot/ansi/AnsiOutput.java @@ -164,12 +164,12 @@ public abstract class AnsiOutput { DETECT, /** - * Enable ANSI-colored output + * Enable ANSI-colored output. */ ALWAYS, /** - * Disable ANSI-colored output + * Disable ANSI-colored output. */ NEVER diff --git a/spring-boot/src/main/java/org/springframework/boot/bind/PropertiesConfigurationFactory.java b/spring-boot/src/main/java/org/springframework/boot/bind/PropertiesConfigurationFactory.java index 29ab5b3ee3e..9b5c8e29a63 100644 --- a/spring-boot/src/main/java/org/springframework/boot/bind/PropertiesConfigurationFactory.java +++ b/spring-boot/src/main/java/org/springframework/boot/bind/PropertiesConfigurationFactory.java @@ -84,6 +84,7 @@ public class PropertiesConfigurationFactory implements FactoryBean, private ConversionService conversionService; /** + * Create a new {@link PropertiesConfigurationFactory} instance. * @param target the target object to bind too * @see #PropertiesConfigurationFactory(Class) */ @@ -93,7 +94,7 @@ public class PropertiesConfigurationFactory implements FactoryBean, } /** - * Create a new factory for an object of the given type. + * Create a new {@link PropertiesConfigurationFactory} instance. * @param type the target type * @see #PropertiesConfigurationFactory(Class) */ @@ -139,14 +140,16 @@ public class PropertiesConfigurationFactory implements FactoryBean, } /** - * @param targetName the target name to set + * Set the target name. + * @param targetName the target name */ public void setTargetName(String targetName) { this.targetName = targetName; } /** - * @param messageSource the messageSource to set + * Set the message source. + * @param messageSource the message source */ @Override public void setMessageSource(MessageSource messageSource) { @@ -154,37 +157,40 @@ public class PropertiesConfigurationFactory implements FactoryBean, } /** - * @param properties the properties to set + * Set the properties. + * @param properties the properties */ public void setProperties(Properties properties) { this.properties = properties; } /** - * @param propertySources the propertySources to set + * Set the property sources. + * @param propertySources the property sources */ public void setPropertySources(PropertySources propertySources) { this.propertySources = propertySources; } /** - * @param conversionService the conversionService to set + * Set the conversion service. + * @param conversionService the conversion service */ public void setConversionService(ConversionService conversionService) { this.conversionService = conversionService; } /** - * @param validator the validator to set + * Set the validator. + * @param validator the validator */ public void setValidator(Validator validator) { this.validator = validator; } /** - * Flag to indicate that an exception should be raised if a Validator is available and - * validation fails. - * + * Set a flag to indicate that an exception should be raised if a Validator is + * available and validation fails. * @param exceptionIfInvalid the flag to set */ public void setExceptionIfInvalid(boolean exceptionIfInvalid) { @@ -342,6 +348,7 @@ public class PropertiesConfigurationFactory implements FactoryBean, } /** + * Customize the databinder. * @param dataBinder the data binder that will be used to bind and validate */ protected void customizeBinder(DataBinder dataBinder) { diff --git a/spring-boot/src/main/java/org/springframework/boot/bind/PropertySourcesPropertyValues.java b/spring-boot/src/main/java/org/springframework/boot/bind/PropertySourcesPropertyValues.java index 9a90d36b0b8..8415389c387 100644 --- a/spring-boot/src/main/java/org/springframework/boot/bind/PropertySourcesPropertyValues.java +++ b/spring-boot/src/main/java/org/springframework/boot/bind/PropertySourcesPropertyValues.java @@ -50,7 +50,7 @@ public class PropertySourcesPropertyValues implements PropertyValues { private final PropertyNamePatternsMatcher includes; /** - * Create a new PropertyValues from the given PropertySources + * Create a new PropertyValues from the given PropertySources. * @param propertySources a PropertySources instance */ public PropertySourcesPropertyValues(PropertySources propertySources) { @@ -58,7 +58,7 @@ public class PropertySourcesPropertyValues implements PropertyValues { } /** - * Create a new PropertyValues from the given PropertySources + * Create a new PropertyValues from the given PropertySources. * @param propertySources a PropertySources instance * @param includePatterns property name patterns to include from system properties and * environment variables @@ -72,7 +72,7 @@ public class PropertySourcesPropertyValues implements PropertyValues { } /** - * Create a new PropertyValues from the given PropertySources + * Create a new PropertyValues from the given PropertySources. * @param propertySources a PropertySources instance * @param propertyNames the property names to use in lieu of an * {@link EnumerablePropertySource}. diff --git a/spring-boot/src/main/java/org/springframework/boot/bind/RelaxedBindingNotWritablePropertyException.java b/spring-boot/src/main/java/org/springframework/boot/bind/RelaxedBindingNotWritablePropertyException.java index e6249bba56a..318b6d855e1 100644 --- a/spring-boot/src/main/java/org/springframework/boot/bind/RelaxedBindingNotWritablePropertyException.java +++ b/spring-boot/src/main/java/org/springframework/boot/bind/RelaxedBindingNotWritablePropertyException.java @@ -20,11 +20,11 @@ import org.springframework.beans.NotWritablePropertyException; /** * A custom {@link NotWritablePropertyException} that is thrown when a failure occurs - * during relaxed binding + * during relaxed binding. * - * @see RelaxedDataBinder * @author Andy Wilkinson * @since 1.3.0 + * @see RelaxedDataBinder */ public class RelaxedBindingNotWritablePropertyException extends NotWritablePropertyException { diff --git a/spring-boot/src/main/java/org/springframework/boot/bind/RelaxedDataBinder.java b/spring-boot/src/main/java/org/springframework/boot/bind/RelaxedDataBinder.java index 990b0eb0ec7..c8f61267519 100644 --- a/spring-boot/src/main/java/org/springframework/boot/bind/RelaxedDataBinder.java +++ b/spring-boot/src/main/java/org/springframework/boot/bind/RelaxedDataBinder.java @@ -134,6 +134,7 @@ public class RelaxedDataBinder extends DataBinder { * is also accepted. * @param propertyValues the property values * @param target the target object + * @return modified property values */ private MutablePropertyValues modifyProperties(MutablePropertyValues propertyValues, Object target) { diff --git a/spring-boot/src/main/java/org/springframework/boot/bind/RelaxedNames.java b/spring-boot/src/main/java/org/springframework/boot/bind/RelaxedNames.java index ccc6ace4a05..51ce53dbac6 100644 --- a/spring-boot/src/main/java/org/springframework/boot/bind/RelaxedNames.java +++ b/spring-boot/src/main/java/org/springframework/boot/bind/RelaxedNames.java @@ -70,6 +70,9 @@ public final class RelaxedNames implements Iterable { } } + /** + * Name variations. + */ enum Variation { NONE { @@ -97,6 +100,9 @@ public final class RelaxedNames implements Iterable { } + /** + * Name manipulations. + */ enum Manipulation { NONE { @@ -189,7 +195,7 @@ public final class RelaxedNames implements Iterable { } /** - * Return a {@link RelaxedNames} for the given source camelCase source name + * Return a {@link RelaxedNames} for the given source camelCase source name. * @param name the source name in camelCase * @return the relaxed names */ diff --git a/spring-boot/src/main/java/org/springframework/boot/bind/YamlConfigurationFactory.java b/spring-boot/src/main/java/org/springframework/boot/bind/YamlConfigurationFactory.java index 0ee308088b5..ec32db80913 100644 --- a/spring-boot/src/main/java/org/springframework/boot/bind/YamlConfigurationFactory.java +++ b/spring-boot/src/main/java/org/springframework/boot/bind/YamlConfigurationFactory.java @@ -80,7 +80,8 @@ public class YamlConfigurationFactory implements FactoryBean, MessageSourc } /** - * @param messageSource the messageSource to set + * Set the message source. + * @param messageSource the message source */ @Override public void setMessageSource(MessageSource messageSource) { @@ -88,28 +89,32 @@ public class YamlConfigurationFactory implements FactoryBean, MessageSourc } /** - * @param propertyAliases the propertyAliases to set + * Set the property aliases. + * @param propertyAliases the property aliases */ public void setPropertyAliases(Map, Map> propertyAliases) { this.propertyAliases = new HashMap, Map>(propertyAliases); } /** - * @param yaml the yaml to set + * Set the YAML. + * @param yaml the YAML */ public void setYaml(String yaml) { this.yaml = yaml; } /** - * @param resource the resource to set + * Set the resource. + * @param resource the resource */ public void setResource(Resource resource) { this.resource = resource; } /** - * @param validator the validator to set + * Set the validator. + * @param validator the validator */ public void setValidator(Validator validator) { this.validator = validator; diff --git a/spring-boot/src/main/java/org/springframework/boot/bind/YamlJavaBeanPropertyConstructor.java b/spring-boot/src/main/java/org/springframework/boot/bind/YamlJavaBeanPropertyConstructor.java index a4007e90f13..dd9897ea49f 100644 --- a/spring-boot/src/main/java/org/springframework/boot/bind/YamlJavaBeanPropertyConstructor.java +++ b/spring-boot/src/main/java/org/springframework/boot/bind/YamlJavaBeanPropertyConstructor.java @@ -79,6 +79,9 @@ public class YamlJavaBeanPropertyConstructor extends Constructor { } } + /** + * Custom {@code ConstructMapping} to resolve properties. + */ class CustomPropertyConstructMapping extends ConstructMapping { @Override diff --git a/spring-boot/src/main/java/org/springframework/boot/builder/ParentContextApplicationContextInitializer.java b/spring-boot/src/main/java/org/springframework/boot/builder/ParentContextApplicationContextInitializer.java index 860c1de62d0..b94d22ea304 100644 --- a/spring-boot/src/main/java/org/springframework/boot/builder/ParentContextApplicationContextInitializer.java +++ b/spring-boot/src/main/java/org/springframework/boot/builder/ParentContextApplicationContextInitializer.java @@ -81,6 +81,9 @@ public class ParentContextApplicationContextInitializer implements } + /** + * {@link ApplicationEvent} fired when a parent context is available. + */ @SuppressWarnings("serial") public static class ParentContextAvailableEvent extends ApplicationEvent { diff --git a/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java b/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java index 70a83076c93..325eadde721 100644 --- a/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java +++ b/spring-boot/src/main/java/org/springframework/boot/builder/SpringApplicationBuilder.java @@ -265,7 +265,7 @@ public class SpringApplicationBuilder { } /** - * Add more sources (configuration classes and components) to this application + * Add more sources (configuration classes and components) to this application. * @param sources the sources to add * @return the current builder */ diff --git a/spring-boot/src/main/java/org/springframework/boot/context/ContextIdApplicationContextInitializer.java b/spring-boot/src/main/java/org/springframework/boot/context/ContextIdApplicationContextInitializer.java index 2a915aca77e..c1775091f19 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/ContextIdApplicationContextInitializer.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/ContextIdApplicationContextInitializer.java @@ -50,12 +50,12 @@ public class ContextIdApplicationContextInitializer implements ApplicationContextInitializer, Ordered { /** - * Placeholder pattern to resolve for application name + * Placeholder pattern to resolve for application name. */ private static final String NAME_PATTERN = "${vcap.application.name:${spring.application.name:${spring.config.name:application}}}"; /** - * Placeholder pattern to resolve for application index + * Placeholder pattern to resolve for application index. */ private static final String INDEX_PATTERN = "${vcap.application.instance_index:${spring.application.index:${server.port:${PORT:null}}}}"; diff --git a/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigFileEnvironmentPostProcessor.java b/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigFileEnvironmentPostProcessor.java index 7ba80be2a3d..4bdc0f5bb3c 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigFileEnvironmentPostProcessor.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigFileEnvironmentPostProcessor.java @@ -99,14 +99,29 @@ public class ConfigFileEnvironmentPostProcessor implements EnvironmentPostProces private static final String DEFAULT_NAMES = "application"; + /** + * The "active profiles" property name. + */ public static final String ACTIVE_PROFILES_PROPERTY = "spring.profiles.active"; + /** + * The "includes profiles" property name. + */ public static final String INCLUDE_PROFILES_PROPERTY = "spring.profiles.include"; + /** + * The "config name" property name. + */ public static final String CONFIG_NAME_PROPERTY = "spring.config.name"; + /** + * The "config location" property name. + */ public static final String CONFIG_LOCATION_PROPERTY = "spring.config.location"; + /** + * The default order for the processor. + */ public static final int DEFAULT_ORDER = Ordered.HIGHEST_PRECEDENCE + 10; private final DeferredLog logger = new DeferredLog(); diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/AbstractConfigurableEmbeddedServletContainer.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/AbstractConfigurableEmbeddedServletContainer.java index 005b7688b18..8b7bb72e515 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/AbstractConfigurableEmbeddedServletContainer.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/AbstractConfigurableEmbeddedServletContainer.java @@ -156,7 +156,8 @@ public abstract class AbstractConfigurableEmbeddedServletContainer implements } /** - * @return the address the embedded container binds to + * Return the address that the embedded container binds to. + * @return the address */ public InetAddress getAddress() { return this.address; @@ -174,7 +175,8 @@ public abstract class AbstractConfigurableEmbeddedServletContainer implements } /** - * @return the session timeout in seconds + * Return the session timeout in seconds. + * @return the timeout in seconds */ public int getSessionTimeout() { return this.sessionTimeout; diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/ConfigurableEmbeddedServletContainer.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/ConfigurableEmbeddedServletContainer.java index 1d88f39b1d8..d9d41883321 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/ConfigurableEmbeddedServletContainer.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/ConfigurableEmbeddedServletContainer.java @@ -171,7 +171,7 @@ public interface ConfigurableEmbeddedServletContainer { void setSsl(Ssl ssl); /** - * Sets the configuration that will be applied to the container's JSP servlet + * Sets the configuration that will be applied to the container's JSP servlet. * @param jspServlet the JSP servlet configuration */ void setJspServlet(JspServlet jspServlet); diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/EmbeddedServletContainer.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/EmbeddedServletContainer.java index 73d31dd8dd0..872cdd33c8d 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/EmbeddedServletContainer.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/EmbeddedServletContainer.java @@ -45,7 +45,8 @@ public interface EmbeddedServletContainer { void stop() throws EmbeddedServletContainerException; /** - * @return the port this server is listening on (or -1 if none) + * Return the port this server is listening on. + * @return the port (or -1 if none) */ int getPort(); diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/EmbeddedWebApplicationContext.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/EmbeddedWebApplicationContext.java index e5d88b41814..187a2282a40 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/EmbeddedWebApplicationContext.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/EmbeddedWebApplicationContext.java @@ -197,6 +197,7 @@ public class EmbeddedWebApplicationContext extends GenericWebApplicationContext /** * Returns the {@link ServletContextInitializer} that will be used to complete the * setup of this {@link WebApplicationContext}. + * @return the self initializer * @see #prepareEmbeddedWebApplicationContext(ServletContext) */ private ServletContextInitializer getSelfInitializer() { diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/ErrorPage.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/ErrorPage.java index 3867a918165..64f0be3e487 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/ErrorPage.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/ErrorPage.java @@ -62,7 +62,7 @@ public class ErrorPage { } /** - * Returns the exception type (or {@code null} for a page that matches by status) + * Returns the exception type (or {@code null} for a page that matches by status). * @return the exception type or {@code null} */ public Class getException() { @@ -95,8 +95,9 @@ public class ErrorPage { } /** - * @return is this error page a global one (matches all unmatched status and exception - * types) + * Return if this error page is a global one (matches all unmatched status and + * exception types). + * @return if this is a global error page */ public boolean isGlobal() { return (this.status == null && this.exception == null); diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/RegistrationBean.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/RegistrationBean.java index 17b2ef28b34..c6273a55905 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/RegistrationBean.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/RegistrationBean.java @@ -80,7 +80,8 @@ public abstract class RegistrationBean implements ServletContextInitializer, Ord } /** - * @return the enabled flag (default true) + * Return if the registration is enabled. + * @return if enabled (default {@code true}) */ public boolean isEnabled() { return this.enabled; @@ -141,13 +142,15 @@ public abstract class RegistrationBean implements ServletContextInitializer, Ord } /** - * @param order the order to set + * Set the order of the registration bean. + * @param order the order */ public void setOrder(int order) { this.order = order; } /** + * Get the order of the registration bean. * @return the order */ @Override diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/ServletListenerRegistrationBean.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/ServletListenerRegistrationBean.java index b0f31731e39..b60a2e9fc17 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/ServletListenerRegistrationBean.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/ServletListenerRegistrationBean.java @@ -50,9 +50,10 @@ import org.springframework.util.ClassUtils; *
    • {@link HttpSessionListener}
    • *
    • {@link ServletContextListener}
    • *
    + * + * @param the type of listener * @author Dave Syer * @author Phillip Webb - * @param the type of listener */ public class ServletListenerRegistrationBean extends RegistrationBean { @@ -133,7 +134,8 @@ public class ServletListenerRegistrationBean extends } /** - * @return the supportedTypes for this registration + * Return the supported types for this registration. + * @return the supported types */ public static Set> getSupportedTypes() { return SUPPORTED_TYPES; diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/Ssl.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/Ssl.java index c8787ac5935..acf2535433e 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/Ssl.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/Ssl.java @@ -208,8 +208,21 @@ public class Ssl { this.protocol = protocol; } + /** + * Client authentication types. + */ public enum ClientAuth { - WANT, NEED + + /** + * Client authentication is wanted but not mandatory. + */ + WANT, + + /** + * Client authentication is needed and mandatory. + */ + NEED + } } diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactory.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactory.java index ad8b6d47d58..5bcce26fdc5 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactory.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactory.java @@ -380,7 +380,7 @@ public class JettyEmbeddedServletContainerFactory extends } /** - * Create a configuration object that adds error handlers + * Create a configuration object that adds error handlers. * @return a configuration object for adding error pages */ private Configuration getErrorPageConfiguration() { @@ -394,7 +394,7 @@ public class JettyEmbeddedServletContainerFactory extends } /** - * Create a configuration object that adds mime type mappings + * Create a configuration object that adds mime type mappings. * @return a configuration object for adding mime type mappings */ private Configuration getMimeTypeConfiguration() { diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/jetty/JettyServerCustomizer.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/jetty/JettyServerCustomizer.java index 4b6ee850a09..90614a0f7dd 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/jetty/JettyServerCustomizer.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/jetty/JettyServerCustomizer.java @@ -27,6 +27,7 @@ import org.eclipse.jetty.server.Server; public interface JettyServerCustomizer { /** + * Customize the server. * @param server the server to customize */ void customize(Server server); diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/SkipPatternJarScanner.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/SkipPatternJarScanner.java index 394087a89f9..9d27e706a34 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/SkipPatternJarScanner.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/SkipPatternJarScanner.java @@ -109,7 +109,7 @@ class SkipPatternJarScanner extends StandardJarScanner { } /** - * Skip patterns used by Spring Boot + * Skip patterns used by Spring Boot. */ private static class SkipPattern { diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatConnectorCustomizer.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatConnectorCustomizer.java index a041a2e749a..d621290158a 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatConnectorCustomizer.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatConnectorCustomizer.java @@ -27,6 +27,7 @@ import org.apache.catalina.connector.Connector; public interface TomcatConnectorCustomizer { /** + * Customize the connector. * @param connector the connector to customize */ void customize(Connector connector); diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatContextCustomizer.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatContextCustomizer.java index 8f15062ee0e..36c94cb018c 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatContextCustomizer.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatContextCustomizer.java @@ -27,6 +27,7 @@ import org.apache.catalina.Context; public interface TomcatContextCustomizer { /** + * Customize the context. * @param context the context to customize */ void customize(Context context); diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java index 43975fcfbac..b8cb9391af7 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java @@ -96,6 +96,9 @@ public class TomcatEmbeddedServletContainerFactory extends private static final Set> NO_CLASSES = Collections.emptySet(); + /** + * The class name of default protocol used. + */ public static final String DEFAULT_PROTOCOL = "org.apache.coyote.http11.Http11NioProtocol"; private File baseDirectory; @@ -628,7 +631,7 @@ public class TomcatEmbeddedServletContainerFactory extends /** * Returns a mutable collection of the {@link Connector}s that will be added to the - * Tomcat + * Tomcat. * @return the additionalTomcatConnectors */ public List getAdditionalTomcatConnectors() { diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatResources.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatResources.java index 6f5b3837ceb..35b33515608 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatResources.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatResources.java @@ -46,7 +46,7 @@ abstract class TomcatResources { } /** - * Add resources from the classpath + * Add resources from the classpath. */ public void addClasspathResources() { ClassLoader loader = getClass().getClassLoader(); diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/FileSessionPersistence.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/FileSessionPersistence.java index 48600a8be2c..a6eb7cdbf41 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/FileSessionPersistence.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/FileSessionPersistence.java @@ -134,6 +134,9 @@ public class FileSessionPersistence implements SessionPersistenceManager { getSessionFile(deploymentName).delete(); } + /** + * Session data in a serializable form. + */ static class SerializablePersistentSession implements Serializable { private static final long serialVersionUID = 0L; diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowBuilderCustomizer.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowBuilderCustomizer.java index 75436d2b083..234b2890a88 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowBuilderCustomizer.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowBuilderCustomizer.java @@ -28,6 +28,7 @@ import io.undertow.Undertow.Builder; public interface UndertowBuilderCustomizer { /** + * Customize the builder. * @param builder the {@code Builder} to customize */ void customize(Builder builder); diff --git a/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowDeploymentInfoCustomizer.java b/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowDeploymentInfoCustomizer.java index 99fa91129a8..11a195a5f59 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowDeploymentInfoCustomizer.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/embedded/undertow/UndertowDeploymentInfoCustomizer.java @@ -28,6 +28,7 @@ import io.undertow.servlet.api.DeploymentInfo; public interface UndertowDeploymentInfoCustomizer { /** + * Customize the deployment info. * @param deploymentInfo the {@code DeploymentInfo} to customize */ void customize(DeploymentInfo deploymentInfo); diff --git a/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationEnvironmentPreparedEvent.java b/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationEnvironmentPreparedEvent.java index 6ca583db2f9..3524d5c8763 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationEnvironmentPreparedEvent.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationEnvironmentPreparedEvent.java @@ -32,6 +32,7 @@ public class ApplicationEnvironmentPreparedEvent extends SpringApplicationEvent private final ConfigurableEnvironment environment; /** + * Create a new {@link ApplicationEnvironmentPreparedEvent} instance. * @param application the current application * @param args the argumemts the application is running with * @param environment the environment that was just created @@ -43,6 +44,7 @@ public class ApplicationEnvironmentPreparedEvent extends SpringApplicationEvent } /** + * Return the environment. * @return the environment */ public ConfigurableEnvironment getEnvironment() { diff --git a/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationFailedEvent.java b/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationFailedEvent.java index d1a6ce26e03..c4d7525a503 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationFailedEvent.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationFailedEvent.java @@ -33,6 +33,7 @@ public class ApplicationFailedEvent extends SpringApplicationEvent { private final Throwable exception; /** + * Create a new {@link ApplicationFailedEvent} instance. * @param application the current application * @param args the arguments the application was running with * @param context the context that was being created (maybe null) @@ -46,6 +47,7 @@ public class ApplicationFailedEvent extends SpringApplicationEvent { } /** + * Return the application context. * @return the context */ public ConfigurableApplicationContext getApplicationContext() { @@ -53,6 +55,7 @@ public class ApplicationFailedEvent extends SpringApplicationEvent { } /** + * Return the exception that caused the failure. * @return the exception */ public Throwable getException() { diff --git a/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationPreparedEvent.java b/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationPreparedEvent.java index 48eeb272e72..216b0124c68 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationPreparedEvent.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationPreparedEvent.java @@ -34,6 +34,7 @@ public class ApplicationPreparedEvent extends SpringApplicationEvent { private final ConfigurableApplicationContext context; /** + * Create a new {@link ApplicationPreparedEvent} instance. * @param application the current application * @param args the argumemts the application is running with * @param context the ApplicationContext about to be refreshed @@ -45,6 +46,7 @@ public class ApplicationPreparedEvent extends SpringApplicationEvent { } /** + * Return the application context. * @return the context */ public ConfigurableApplicationContext getApplicationContext() { diff --git a/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationReadyEvent.java b/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationReadyEvent.java index f89b5a06536..71c1138dc16 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationReadyEvent.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationReadyEvent.java @@ -35,6 +35,7 @@ public class ApplicationReadyEvent extends SpringApplicationEvent { private final ConfigurableApplicationContext context; /** + * Create a new {@link ApplicationReadyEvent} instance. * @param application the current application * @param args the arguments the application is running with * @param context the context that was being created (maybe null) @@ -46,6 +47,7 @@ public class ApplicationReadyEvent extends SpringApplicationEvent { } /** + * Return the application context. * @return the context */ public ConfigurableApplicationContext getApplicationContext() { diff --git a/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationStartedEvent.java b/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationStartedEvent.java index 332d870453f..9973a4cc3c0 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationStartedEvent.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/event/ApplicationStartedEvent.java @@ -34,6 +34,7 @@ import org.springframework.core.env.Environment; public class ApplicationStartedEvent extends SpringApplicationEvent { /** + * Create a new {@link ApplicationStartedEvent} instance. * @param application the current application * @param args the arguments the application is running with */ diff --git a/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessor.java b/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessor.java index a5a1dc26115..82a62149d5f 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessor.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessor.java @@ -75,6 +75,9 @@ public class ConfigurationPropertiesBindingPostProcessor implements BeanPostProc BeanFactoryAware, ResourceLoaderAware, EnvironmentAware, ApplicationContextAware, InitializingBean, DisposableBean, PriorityOrdered { + /** + * The bean name of the configuration properties validator. + */ public static final String VALIDATOR_BEAN_NAME = "configurationPropertiesValidator"; private static final String[] VALIDATOR_CLASSES = { "javax.validation.Validator", @@ -116,13 +119,15 @@ public class ConfigurationPropertiesBindingPostProcessor implements BeanPostProc } /** - * @param order the order to set + * Set the order of the bean. + * @param order the order */ public void setOrder(int order) { this.order = order; } /** + * Return the order of the bean. * @return the order */ @Override diff --git a/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessorRegistrar.java b/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessorRegistrar.java index e3a6cef92cc..1742d9404f8 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessorRegistrar.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationPropertiesBindingPostProcessorRegistrar.java @@ -31,6 +31,9 @@ import org.springframework.core.type.AnnotationMetadata; public class ConfigurationPropertiesBindingPostProcessorRegistrar implements ImportBeanDefinitionRegistrar { + /** + * The bean name of the {@link ConfigurationPropertiesBindingPostProcessor}. + */ public static final String BINDER_BEAN_NAME = ConfigurationPropertiesBindingPostProcessor.class .getName(); diff --git a/spring-boot/src/main/java/org/springframework/boot/context/properties/EnableConfigurationPropertiesImportSelector.java b/spring-boot/src/main/java/org/springframework/boot/context/properties/EnableConfigurationPropertiesImportSelector.java index bdece5b1717..59d290ae2c8 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/properties/EnableConfigurationPropertiesImportSelector.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/properties/EnableConfigurationPropertiesImportSelector.java @@ -58,6 +58,9 @@ class EnableConfigurationPropertiesImportSelector implements ImportSelector { ConfigurationPropertiesBindingPostProcessorRegistrar.class.getName() }; } + /** + * {@link ImportBeanDefinitionRegistrar} for configuration properties support. + */ public static class ConfigurationPropertiesBeanRegistrar implements ImportBeanDefinitionRegistrar { diff --git a/spring-boot/src/main/java/org/springframework/boot/context/web/ErrorPageFilter.java b/spring-boot/src/main/java/org/springframework/boot/context/web/ErrorPageFilter.java index 706034d9879..8e95e4b7a22 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/web/ErrorPageFilter.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/web/ErrorPageFilter.java @@ -70,6 +70,9 @@ public class ErrorPageFilter extends AbstractConfigurableEmbeddedServletContaine private static final String ERROR_MESSAGE = "javax.servlet.error.message"; + /** + * The name of the servlet attribute containing request URI. + */ public static final String ERROR_REQUEST_URI = "javax.servlet.error.request_uri"; private static final String ERROR_STATUS_CODE = "javax.servlet.error.status_code"; diff --git a/spring-boot/src/main/java/org/springframework/boot/context/web/ServletContextApplicationContextInitializer.java b/spring-boot/src/main/java/org/springframework/boot/context/web/ServletContextApplicationContextInitializer.java index f6d3321bb6a..ae421b3c6fa 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/web/ServletContextApplicationContextInitializer.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/web/ServletContextApplicationContextInitializer.java @@ -35,7 +35,7 @@ public class ServletContextApplicationContextInitializer implements private final ServletContext servletContext; /** - * Create a new {@link ServletContextApplicationContextInitializer} instance + * Create a new {@link ServletContextApplicationContextInitializer} instance. * @param servletContext the servlet that should be ultimately set. */ public ServletContextApplicationContextInitializer(ServletContext servletContext) { diff --git a/spring-boot/src/main/java/org/springframework/boot/env/EnumerableCompositePropertySource.java b/spring-boot/src/main/java/org/springframework/boot/env/EnumerableCompositePropertySource.java index e899ba59294..094382591bb 100644 --- a/spring-boot/src/main/java/org/springframework/boot/env/EnumerableCompositePropertySource.java +++ b/spring-boot/src/main/java/org/springframework/boot/env/EnumerableCompositePropertySource.java @@ -29,10 +29,9 @@ import org.springframework.core.env.PropertySource; * An mutable, enumerable, composite property source. New sources are added last (and * hence resolved with lowest priority). * + * @author Dave Syer * @see PropertySource * @see EnumerablePropertySource - * - * @author Dave Syer */ public class EnumerableCompositePropertySource extends EnumerablePropertySource>> { diff --git a/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessingApplicationListener.java b/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessingApplicationListener.java index 678375282b9..9653c98f28a 100644 --- a/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessingApplicationListener.java +++ b/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessingApplicationListener.java @@ -40,6 +40,9 @@ import org.springframework.core.io.support.SpringFactoriesLoader; public class EnvironmentPostProcessingApplicationListener implements ApplicationListener, Ordered { + /** + * The order for the {@link EnvironmentPostProcessingApplicationListener}. + */ public static final int ORDER = Ordered.HIGHEST_PRECEDENCE + 10; @Override diff --git a/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessor.java b/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessor.java index dbca7d286c2..bacc87655e2 100644 --- a/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessor.java +++ b/spring-boot/src/main/java/org/springframework/boot/env/EnvironmentPostProcessor.java @@ -30,7 +30,7 @@ import org.springframework.core.env.Environment; public interface EnvironmentPostProcessor { /** - * Post-process the given {@code environment} + * Post-process the given {@code environment}. * @param environment the environment to post-process * @param application the application to which the environment belongs */ diff --git a/spring-boot/src/main/java/org/springframework/boot/json/BasicJsonParser.java b/spring-boot/src/main/java/org/springframework/boot/json/BasicJsonParser.java index 5c141def836..c5da1e13d8d 100644 --- a/spring-boot/src/main/java/org/springframework/boot/json/BasicJsonParser.java +++ b/spring-boot/src/main/java/org/springframework/boot/json/BasicJsonParser.java @@ -31,8 +31,8 @@ import org.springframework.util.StringUtils; * YAML are supported). * * @author Dave Syer - * @see JsonParserFactory * @since 1.2.0 + * @see JsonParserFactory */ public class BasicJsonParser implements JsonParser { diff --git a/spring-boot/src/main/java/org/springframework/boot/jta/atomikos/AtomikosLoggingLevel.java b/spring-boot/src/main/java/org/springframework/boot/jta/atomikos/AtomikosLoggingLevel.java index 39e5fca7595..b334b89d741 100644 --- a/spring-boot/src/main/java/org/springframework/boot/jta/atomikos/AtomikosLoggingLevel.java +++ b/spring-boot/src/main/java/org/springframework/boot/jta/atomikos/AtomikosLoggingLevel.java @@ -20,8 +20,8 @@ package org.springframework.boot.jta.atomikos; * Logging levels supported by Atomikos. * * @author Phillip Webb - * @see AtomikosProperties * @since 1.2.0 + * @see AtomikosProperties */ public enum AtomikosLoggingLevel { diff --git a/spring-boot/src/main/java/org/springframework/boot/jta/atomikos/AtomikosProperties.java b/spring-boot/src/main/java/org/springframework/boot/jta/atomikos/AtomikosProperties.java index 10e9041483b..b742c25e12d 100644 --- a/spring-boot/src/main/java/org/springframework/boot/jta/atomikos/AtomikosProperties.java +++ b/spring-boot/src/main/java/org/springframework/boot/jta/atomikos/AtomikosProperties.java @@ -27,8 +27,8 @@ import java.util.TreeMap; * binding. * * @author Phillip Webb - * @see #asProperties() * @since 1.2.0 + * @see #asProperties() */ public class AtomikosProperties { diff --git a/spring-boot/src/main/java/org/springframework/boot/liquibase/CommonsLoggingLiquibaseLogger.java b/spring-boot/src/main/java/org/springframework/boot/liquibase/CommonsLoggingLiquibaseLogger.java index 8c3bc2f14bf..3403cee6815 100644 --- a/spring-boot/src/main/java/org/springframework/boot/liquibase/CommonsLoggingLiquibaseLogger.java +++ b/spring-boot/src/main/java/org/springframework/boot/liquibase/CommonsLoggingLiquibaseLogger.java @@ -33,6 +33,9 @@ import liquibase.logging.core.AbstractLogger; */ public class CommonsLoggingLiquibaseLogger extends AbstractLogger { + /** + * The priority for the {@link CommonsLoggingLiquibaseLogger}. + */ public static final int PRIORITY = 10; private Log logger; diff --git a/spring-boot/src/main/java/org/springframework/boot/liquibase/LiquibaseServiceLocatorApplicationListener.java b/spring-boot/src/main/java/org/springframework/boot/liquibase/LiquibaseServiceLocatorApplicationListener.java index e032903d88a..9fc73e95402 100644 --- a/spring-boot/src/main/java/org/springframework/boot/liquibase/LiquibaseServiceLocatorApplicationListener.java +++ b/spring-boot/src/main/java/org/springframework/boot/liquibase/LiquibaseServiceLocatorApplicationListener.java @@ -46,7 +46,7 @@ public class LiquibaseServiceLocatorApplicationListener implements } /** - * Inner class to prevent class not found issues + * Inner class to prevent class not found issues. */ private static class LiquibasePresent { diff --git a/spring-boot/src/main/java/org/springframework/boot/test/SpringApplicationConfiguration.java b/spring-boot/src/main/java/org/springframework/boot/test/SpringApplicationConfiguration.java index 594e3b9afa0..61730c84ced 100644 --- a/spring-boot/src/main/java/org/springframework/boot/test/SpringApplicationConfiguration.java +++ b/spring-boot/src/main/java/org/springframework/boot/test/SpringApplicationConfiguration.java @@ -48,6 +48,7 @@ import org.springframework.test.context.ContextConfiguration; public @interface SpringApplicationConfiguration { /** + * The context configuration classes. * @see ContextConfiguration#classes() * @return the context configuration classes */ @@ -55,6 +56,7 @@ public @interface SpringApplicationConfiguration { Class[] value() default {}; /** + * The context configuration locations. * @see ContextConfiguration#locations() * @return the context configuration locations */ @@ -62,6 +64,7 @@ public @interface SpringApplicationConfiguration { String[] locations() default {}; /** + * The context configuration classes. * @see ContextConfiguration#classes() * @return the context configuration classes */ @@ -69,6 +72,7 @@ public @interface SpringApplicationConfiguration { Class[] classes() default {}; /** + * The context configuration initializers. * @see ContextConfiguration#initializers() * @return the context configuration initializers */ @@ -76,6 +80,7 @@ public @interface SpringApplicationConfiguration { Class>[] initializers() default {}; /** + * Should context locations be inherited. * @see ContextConfiguration#inheritLocations() * @return {@code true} if context locations should be inherited */ @@ -83,6 +88,7 @@ public @interface SpringApplicationConfiguration { boolean inheritLocations() default true; /** + * Should initializers be inherited. * @see ContextConfiguration#inheritInitializers() * @return {@code true} if context initializers should be inherited */ @@ -90,6 +96,7 @@ public @interface SpringApplicationConfiguration { boolean inheritInitializers() default true; /** + * The name of the context hierarchy level. * @see ContextConfiguration#name() * @return the name of the context hierarchy level */ diff --git a/spring-boot/src/main/java/org/springframework/boot/test/TestRestTemplate.java b/spring-boot/src/main/java/org/springframework/boot/test/TestRestTemplate.java index 3d28feb48a7..0b4f06fe04f 100644 --- a/spring-boot/src/main/java/org/springframework/boot/test/TestRestTemplate.java +++ b/spring-boot/src/main/java/org/springframework/boot/test/TestRestTemplate.java @@ -130,6 +130,9 @@ public class TestRestTemplate extends RestTemplate { } + /** + * {@link HttpComponentsClientHttpRequestFactory} to apply customizations. + */ protected static class CustomHttpComponentsClientHttpRequestFactory extends HttpComponentsClientHttpRequestFactory { diff --git a/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletComponentRegisteringPostProcessor.java b/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletComponentRegisteringPostProcessor.java index 69fa29ff734..2ef2834ce08 100644 --- a/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletComponentRegisteringPostProcessor.java +++ b/spring-boot/src/main/java/org/springframework/boot/web/servlet/ServletComponentRegisteringPostProcessor.java @@ -36,9 +36,9 @@ import org.springframework.context.annotation.ScannedGenericBeanDefinition; * {@link BeanFactoryPostProcessor} that registers beans for Servlet components found via * package scanning. * + * @author Andy Wilkinson * @see ServletComponentScan * @see ServletComponentScanRegistrar - * @author Andy Wilkinson */ class ServletComponentRegisteringPostProcessor implements BeanFactoryPostProcessor, ApplicationContextAware { diff --git a/spring-boot/src/main/java/org/springframework/boot/web/servlet/WebFilterHandler.java b/spring-boot/src/main/java/org/springframework/boot/web/servlet/WebFilterHandler.java index 62f165fa496..c5a4100b1ee 100644 --- a/spring-boot/src/main/java/org/springframework/boot/web/servlet/WebFilterHandler.java +++ b/spring-boot/src/main/java/org/springframework/boot/web/servlet/WebFilterHandler.java @@ -30,7 +30,7 @@ import org.springframework.boot.context.embedded.FilterRegistrationBean; import org.springframework.util.StringUtils; /** - * Handler for {@link WebFilter}-annotated classes + * Handler for {@link WebFilter}-annotated classes. * * @author Andy Wilkinson */ diff --git a/spring-boot/src/main/java/org/springframework/boot/web/servlet/WebListenerHandler.java b/spring-boot/src/main/java/org/springframework/boot/web/servlet/WebListenerHandler.java index 1937be41204..b40bf626f2b 100644 --- a/spring-boot/src/main/java/org/springframework/boot/web/servlet/WebListenerHandler.java +++ b/spring-boot/src/main/java/org/springframework/boot/web/servlet/WebListenerHandler.java @@ -26,7 +26,7 @@ import org.springframework.beans.factory.support.BeanDefinitionRegistry; import org.springframework.boot.context.embedded.ServletListenerRegistrationBean; /** - * Handler for {@link WebListener}-annotated classes + * Handler for {@link WebListener}-annotated classes. * * @author Andy Wilkinson */ diff --git a/spring-boot/src/main/java/org/springframework/boot/web/servlet/WebServletHandler.java b/spring-boot/src/main/java/org/springframework/boot/web/servlet/WebServletHandler.java index 0e4c74a262f..88a009ea79e 100644 --- a/spring-boot/src/main/java/org/springframework/boot/web/servlet/WebServletHandler.java +++ b/spring-boot/src/main/java/org/springframework/boot/web/servlet/WebServletHandler.java @@ -27,7 +27,7 @@ import org.springframework.boot.context.embedded.ServletRegistrationBean; import org.springframework.util.StringUtils; /** - * Handler for {@link WebServlet}-annotated classes + * Handler for {@link WebServlet}-annotated classes. * * @author Andy Wilkinson */ diff --git a/spring-boot/src/main/java/org/springframework/boot/web/servlet/view/velocity/package-info.java b/spring-boot/src/main/java/org/springframework/boot/web/servlet/view/velocity/package-info.java index a799820668b..56d98ba3c34 100644 --- a/spring-boot/src/main/java/org/springframework/boot/web/servlet/view/velocity/package-info.java +++ b/spring-boot/src/main/java/org/springframework/boot/web/servlet/view/velocity/package-info.java @@ -15,7 +15,7 @@ */ /** - * Velocity support classes + * Velocity support classes. */ package org.springframework.boot.web.servlet.view.velocity; diff --git a/spring-boot/src/test/java/org/springframework/boot/web/servlet/WebListenerHandlerTests.java b/spring-boot/src/test/java/org/springframework/boot/web/servlet/WebListenerHandlerTests.java index a2f565416b0..5aac52c2c22 100644 --- a/spring-boot/src/test/java/org/springframework/boot/web/servlet/WebListenerHandlerTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/web/servlet/WebListenerHandlerTests.java @@ -28,7 +28,7 @@ import org.springframework.context.annotation.ScannedGenericBeanDefinition; import org.springframework.core.type.classreading.SimpleMetadataReaderFactory; /** - * Tests for {@WebListenerHandler} + * Tests for {@link WebListenerHandler}. * * @author Andy Wilkinson */ diff --git a/spring-boot/src/test/java/org/springframework/boot/web/servlet/WebServletHandlerTests.java b/spring-boot/src/test/java/org/springframework/boot/web/servlet/WebServletHandlerTests.java index ee8b53fa1b0..08544b1745a 100644 --- a/spring-boot/src/test/java/org/springframework/boot/web/servlet/WebServletHandlerTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/web/servlet/WebServletHandlerTests.java @@ -40,7 +40,7 @@ import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; /** - * Tests for {@WebServletHandler} + * Tests for {@link WebServletHandler}. * * @author Andy Wilkinson */