Skip to content

Commit b803384

Browse files
committed
Merge pull request #6817 from izeye:polish-20160905
* pr/6817: Polish
2 parents b7da0bd + 4b9f686 commit b803384

File tree

10 files changed

+13
-18
lines changed

10 files changed

+13
-18
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -374,11 +374,6 @@ static class TomcatAccessLogCustomizer
374374
super(TomcatEmbeddedServletContainerFactory.class);
375375
}
376376

377-
@Override
378-
public int getOrder() {
379-
return 1;
380-
}
381-
382377
@Override
383378
public void customize(TomcatEmbeddedServletContainerFactory container) {
384379
AccessLogValve accessLogValve = findAccessLogValve(container);

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/endpoint/mvc/HalBrowserMvcEndpointServerServletPathIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
import static org.springframework.hateoas.mvc.ControllerLinkBuilder.linkTo;
4444

4545
/**
46-
* Integration tests for {@link HalBrowserMvcEndpoint} when a custom server context path
46+
* Integration tests for {@link HalBrowserMvcEndpoint} when a custom server servlet path
4747
* has been configured.
4848
*
4949
* @author Dave Syer

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/rest/SpringBootRepositoryRestConfigurer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
2525

2626
/**
27-
* A {@code RepositoryRestConfigurer} that applies that applies configuration items from
27+
* A {@code RepositoryRestConfigurer} that applies configuration items from
2828
* the {@code spring.data.rest} namespace to Spring Data REST. Also, if a
2929
* {@link Jackson2ObjectMapperBuilder} is available, it is used to configure Spring Data
3030
* REST's {@link ObjectMapper ObjectMappers}.

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public void testRollbackFile() throws Exception {
256256
}
257257

258258
@Test
259-
public void testLiquibaseDateSource() {
259+
public void testLiquibaseDataSource() {
260260
this.context.register(LiquibaseDataSourceConfiguration.class,
261261
EmbeddedDataSourceConfiguration.class, LiquibaseAutoConfiguration.class,
262262
PropertyPlaceholderAutoConfiguration.class);

spring-boot-cli/src/main/java/org/springframework/boot/cli/command/install/Installer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,15 @@ private void saveInstallCounts() throws IOException {
9292
}
9393

9494
public void install(List<String> artifactIdentifiers) throws Exception {
95-
File libDirectory = getDefaultExtDirectory();
96-
libDirectory.mkdirs();
97-
Log.info("Installing into: " + libDirectory);
95+
File extDirectory = getDefaultExtDirectory();
96+
extDirectory.mkdirs();
97+
Log.info("Installing into: " + extDirectory);
9898
List<File> artifactFiles = this.dependencyResolver.resolve(artifactIdentifiers);
9999
for (File artifactFile : artifactFiles) {
100100
int installCount = getInstallCount(artifactFile);
101101
if (installCount == 0) {
102102
FileCopyUtils.copy(artifactFile,
103-
new File(libDirectory, artifactFile.getName()));
103+
new File(extDirectory, artifactFile.getName()));
104104
}
105105
setInstallCount(artifactFile, installCount + 1);
106106
}

spring-boot-starters/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ do as they were designed before this was clarified.
100100
| Charon reverse proxy
101101
| https://github.com/mkopylec/charon-spring-boot-starter
102102

103-
| http://www.wiremock.org[WireMock] and Spring RESTDocs
103+
| http://www.wiremock.org[WireMock] and Spring REST Docs
104104
| https://github.com/ePages-de/restdocs-wiremock
105105

106106
| https://cxf.apache.org/docs/springboot.html[Apache CXF]

spring-boot-test/src/main/java/org/springframework/boot/test/mock/mockito/DefinitionsParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ private void addDefinition(AnnotatedElement element, Definition definition,
125125
private Set<ResolvableType> getOrDeduceTypes(AnnotatedElement element,
126126
Class<?>[] value) {
127127
Set<ResolvableType> types = new LinkedHashSet<ResolvableType>();
128-
for (Class<?> type : value) {
129-
types.add(ResolvableType.forClass(type));
128+
for (Class<?> clazz : value) {
129+
types.add(ResolvableType.forClass(clazz));
130130
}
131131
if (types.isEmpty() && element instanceof Field) {
132132
types.add(ResolvableType.forField((Field) element));

spring-boot-test/src/main/java/org/springframework/boot/test/mock/mockito/MockDefinition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private Set<Class<?>> asClassSet(Class<?>[] classes) {
7777

7878
/**
7979
* Return the type that should be mocked.
80-
* @return the class to mock; never {@code null}
80+
* @return the type to mock; never {@code null}
8181
*/
8282
public ResolvableType getTypeToMock() {
8383
return this.typeToMock;

spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/example/ExampleGenericService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* Example service interface for mocking tests.
2121
*
22-
* @param <T> The generic type
22+
* @param <T> the generic type
2323
* @author Phillip Webb
2424
*/
2525
public interface ExampleGenericService<T> {

spring-boot-test/src/test/java/org/springframework/boot/test/mock/mockito/example/ExampleGenericServiceCaller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public ExampleGenericService<String> getStringService() {
4242
}
4343

4444
public String sayGreeting() {
45-
return "I say " + +this.integerService.greeting() + " "
45+
return "I say " + this.integerService.greeting() + " "
4646
+ this.stringService.greeting();
4747
}
4848

0 commit comments

Comments
 (0)