Skip to content

Commit b5d267c

Browse files
author
Phillip Webb
committed
Polish
1 parent 80b7e60 commit b5d267c

File tree

12 files changed

+35
-11
lines changed

12 files changed

+35
-11
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcChildContextConfiguration.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ public DispatcherServlet dispatcherServlet() {
105105

106106
@Bean
107107
public HandlerAdapter handlerAdapter(HttpMessageConverters converters) {
108-
// TODO: maybe this needs more configuration for non-basic response use cases
109108
RequestMappingHandlerAdapter adapter = new RequestMappingHandlerAdapter();
110109
adapter.setMessageConverters(converters.getConverters());
111110
return adapter;

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/health/DataSourceHealthIndicator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
*
3535
* @author Dave Syer
3636
* @author Christian Dupuis
37+
* @since 1.1.0
3738
*/
3839
public class DataSourceHealthIndicator extends AbstractHealthIndicator {
3940

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/groovy/template/web/GroovyTemplateView.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2013 the original author or authors.
2+
* Copyright 2012-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,12 +24,14 @@
2424
import javax.servlet.http.HttpServletRequest;
2525
import javax.servlet.http.HttpServletResponse;
2626

27+
import org.springframework.web.servlet.View;
2728
import org.springframework.web.servlet.support.RequestContext;
2829
import org.springframework.web.servlet.view.AbstractUrlBasedView;
2930

3031
/**
31-
* @author Dave Syer
32+
* Spring MVC {@link View} that can render Groovy templates.
3233
*
34+
* @author Dave Syer
3335
* @since 1.1.0
3436
*/
3537
public class GroovyTemplateView extends AbstractUrlBasedView {

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/groovy/template/web/GroovyTemplateViewResolver.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2013 the original author or authors.
2+
* Copyright 2012-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,11 +25,15 @@
2525
import org.springframework.beans.propertyeditors.LocaleEditor;
2626
import org.springframework.core.io.Resource;
2727
import org.springframework.web.servlet.View;
28+
import org.springframework.web.servlet.ViewResolver;
2829
import org.springframework.web.servlet.view.UrlBasedViewResolver;
2930

3031
/**
32+
* Spring MVC {@link ViewResolver} for {@link GroovyTemplateView}s.
33+
*
3134
* @author Dave Syer
3235
* @since 1.1.0
36+
* @see GroovyTemplateView
3337
*/
3438
public class GroovyTemplateViewResolver extends UrlBasedViewResolver {
3539

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/jackson/JacksonAutoConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,5 @@ JSR310Module jacksonJsr310Module() {
112112
}
113113

114114
}
115+
115116
}

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mongo/MongoDataAutoConfiguration.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
* @author Dave Syer
4747
* @author Oliver Gierke
4848
* @author Josh Long
49+
* @since 1.1.0
4950
*/
5051
@Configuration
5152
@ConditionalOnClass({ Mongo.class, MongoTemplate.class })

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/social/SocialAutoConfigurerAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
/**
2828
* Base class for auto-configured {@link SocialConfigurerAdapter}s.
2929
*
30-
* @author Phillip Webb
3130
* @author Craig Walls
31+
* @author Phillip Webb
3232
* @since 1.1.0
3333
*/
3434
@ConditionalOnClass(SocialConfigurerAdapter.class)

spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/JavaExecutable.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* Provides access to the java binary executable, regardless of OS.
2828
*
2929
* @author Phillip Webb
30+
* @since 1.1.0
3031
*/
3132
public class JavaExecutable {
3233

@@ -47,7 +48,11 @@ private File findInJavaHome(String javaHome) {
4748
return command;
4849
}
4950

50-
// TODO: is this used?
51+
/**
52+
* Create a new {@link ProcessBuilder} that will run with the Java executable.
53+
* @param arguments the command arguments
54+
* @return a {@link ProcessBuilder}
55+
*/
5156
public ProcessBuilder processBuilder(String... arguments) {
5257
ProcessBuilder processBuilder = new ProcessBuilder(toString());
5358
processBuilder.command().addAll(Arrays.asList(arguments));

spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/LogbackInitializer.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2013 the original author or authors.
2+
* Copyright 2012-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,9 +24,12 @@
2424
import ch.qos.logback.classic.Level;
2525

2626
/**
27+
* Utility to initialize logback (when present) to use INFO level logging.
28+
*
2729
* @author Dave Syer
30+
* @since 1.1.0
2831
*/
29-
public class LogbackInitializer {
32+
public abstract class LogbackInitializer {
3033

3134
public static void initialize() {
3235
if (ClassUtils.isPresent("org.slf4j.impl.StaticLoggerBinder", null)

spring-boot-tools/spring-boot-loader-tools/src/main/java/org/springframework/boot/loader/tools/RunProcess.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@
2626
import org.springframework.util.ReflectionUtils;
2727

2828
/**
29-
* Special utility used to run a process.
29+
* Utility used to run a process.
3030
*
3131
* @author Phillip Webb
3232
* @author Dave Syer
33+
* @since 1.1.0
3334
*/
3435
public class RunProcess {
3536

0 commit comments

Comments
 (0)