Skip to content

Commit 8ec00c3

Browse files
izeyesnicoll
authored andcommitted
1 parent 31d7ebc commit 8ec00c3

File tree

40 files changed

+70
-70
lines changed

40 files changed

+70
-70
lines changed

CONTRIBUTING.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ added after the original pull request but before a merge.
6060
If you don't have an IDE preference we would recommend that you use
6161
http://www.springsource.com/developer/sts[Spring Tools Suite] or
6262
http://eclipse.org[Eclipse] when working with the code. We use the
63-
http://eclipse.org/m2e/[m2eclipe] eclipse plugin for maven support. Other IDEs and tools
63+
http://eclipse.org/m2e/[M2Eclipse] eclipse plugin for maven support. Other IDEs and tools
6464
should also work without issue.
6565

6666

@@ -168,7 +168,7 @@ easier to navigate.
168168

169169
==== Manual installation with m2eclipse
170170
If you prefer to install Eclipse yourself we recommend that you use the
171-
http://eclipse.org/m2e/[m2eclipe] eclipse plugin. If you don't already have m2eclipse
171+
http://eclipse.org/m2e/[M2Eclipse] eclipse plugin. If you don't already have m2eclipse
172172
installed it is available from the "Eclipse marketplace".
173173

174174
Spring Boot includes project specific source formatting settings, in order to have these

README.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Having trouble with Spring Boot? We'd like to help!
7272

7373
== Reporting Issues
7474
Spring Boot uses GitHub's integrated issue tracking system to record bugs and feature
75-
requests. If you want to raise an issue, please follow the recommendations bellow:
75+
requests. If you want to raise an issue, please follow the recommendations below:
7676

7777
* Before you log a bug, please https://github.com/spring-projects/spring-boot/search?type=Issues[search the issue tracker]
7878
to see if someone has already reported the problem.

spring-boot-devtools/src/main/java/org/springframework/boot/devtools/log4j2/Log4J2RestartListener.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ private void prepareLog4J2ForRestart() {
5555
"hooks");
5656
ReflectionUtils.makeAccessible(hooksField);
5757
@SuppressWarnings("unchecked")
58-
Collection<Cancellable> state = (Collection<Cancellable>) ReflectionUtils
58+
Collection<Cancellable> hooks = (Collection<Cancellable>) ReflectionUtils
5959
.getField(hooksField, shutdownCallbackRegistry);
60-
state.clear();
60+
hooks.clear();
6161
}
6262

6363
}

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/LocalDevToolsAutoConfigurationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public void liveReloadTriggeredOnContextRefresh() throws Exception {
139139
}
140140

141141
@Test
142-
public void liveReloadTriggerdOnClassPathChangeWithoutRestart() throws Exception {
142+
public void liveReloadTriggeredOnClassPathChangeWithoutRestart() throws Exception {
143143
this.context = initializeAndRun(ConfigWithMockLiveReload.class);
144144
LiveReloadServer server = this.context.getBean(LiveReloadServer.class);
145145
reset(server);
@@ -150,7 +150,7 @@ public void liveReloadTriggerdOnClassPathChangeWithoutRestart() throws Exception
150150
}
151151

152152
@Test
153-
public void liveReloadNotTriggerdOnClassPathChangeWithRestart() throws Exception {
153+
public void liveReloadNotTriggeredOnClassPathChangeWithRestart() throws Exception {
154154
this.context = initializeAndRun(ConfigWithMockLiveReload.class);
155155
LiveReloadServer server = this.context.getBean(LiveReloadServer.class);
156156
reset(server);

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/classpath/ClassPathFileSystemWatcherTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ public void configuredWithRestartStrategy() throws Exception {
9494
public static class Config {
9595

9696
@Autowired
97-
public Environment environemnt;
97+
public Environment environment;
9898

9999
@Bean
100100
public ClassPathFileSystemWatcher watcher() {
101101
FileSystemWatcher watcher = new FileSystemWatcher(false, 100, 10);
102-
URL[] urls = this.environemnt.getProperty("urls", URL[].class);
102+
URL[] urls = this.environment.getProperty("urls", URL[].class);
103103
return new ClassPathFileSystemWatcher(
104104
new MockFileSystemWatcherFactory(watcher), restartStrategy(), urls);
105105
}

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/restart/classloader/ClassLoaderFilesTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public void getSourceFolders() throws Exception {
123123
}
124124

125125
@Test
126-
public void serialzie() throws Exception {
126+
public void serialize() throws Exception {
127127
ClassLoaderFile file = new ClassLoaderFile(Kind.ADDED, new byte[10]);
128128
this.files.addFile("myfile", file);
129129
ByteArrayOutputStream bos = new ByteArrayOutputStream();

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/tunnel/client/HttpTunnelConnectionTests.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class HttpTunnelConnectionTests {
5858

5959
private String url;
6060

61-
private ByteArrayOutputStream incommingData;
61+
private ByteArrayOutputStream incomingData;
6262

6363
private WritableByteChannel incomingChannel;
6464

@@ -71,8 +71,8 @@ public class HttpTunnelConnectionTests {
7171
public void setup() {
7272
MockitoAnnotations.initMocks(this);
7373
this.url = "http://localhost:" + this.port;
74-
this.incommingData = new ByteArrayOutputStream();
75-
this.incomingChannel = Channels.newChannel(this.incommingData);
74+
this.incomingData = new ByteArrayOutputStream();
75+
this.incomingChannel = Channels.newChannel(this.incomingData);
7676
}
7777

7878
@Test
@@ -129,7 +129,7 @@ public void typicalTraffic() throws Exception {
129129
write(channel, "hello");
130130
write(channel, "1+1");
131131
write(channel, "1+2");
132-
assertThat(this.incommingData.toString(), equalTo("hi=2=3"));
132+
assertThat(this.incomingData.toString(), equalTo("hi=2=3"));
133133
}
134134

135135
@Test
@@ -140,7 +140,7 @@ public void trafficWithLongPollTimeouts() throws Exception {
140140
this.requestFactory.willRespond("hi");
141141
TunnelChannel channel = openTunnel(true);
142142
write(channel, "hello");
143-
assertThat(this.incommingData.toString(), equalTo("hi"));
143+
assertThat(this.incomingData.toString(), equalTo("hi"));
144144
assertThat(this.requestFactory.getExecutedRequests().size(), greaterThan(10));
145145
}
146146

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/tunnel/server/HttpTunnelServerTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public void initialRequestIsSentToServer() throws Exception {
146146
}
147147

148148
@Test
149-
public void intialRequestIsUsedForFirstServerResponse() throws Exception {
149+
public void initialRequestIsUsedForFirstServerResponse() throws Exception {
150150
this.servletRequest.addHeader(SEQ_HEADER, "1");
151151
this.servletRequest.setContent("hello".getBytes());
152152
this.server.handle(this.request, this.response);
@@ -167,7 +167,7 @@ public void initialRequestHasNoPayload() throws Exception {
167167
}
168168

169169
@Test
170-
public void typicalReqestResponseTraffic() throws Exception {
170+
public void typicalRequestResponseTraffic() throws Exception {
171171
MockHttpConnection h1 = new MockHttpConnection();
172172
this.server.handle(h1);
173173
MockHttpConnection h2 = new MockHttpConnection("hello server", 1);

spring-boot-devtools/src/test/java/org/springframework/boot/devtools/tunnel/server/StaticPortProviderTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class StaticPortProviderTests {
3434
public ExpectedException thrown = ExpectedException.none();
3535

3636
@Test
37-
public void portMustBePostive() throws Exception {
37+
public void portMustBePositive() throws Exception {
3838
this.thrown.expect(IllegalArgumentException.class);
3939
this.thrown.expectMessage("Port must be positive");
4040
new StaticPortProvider(0);

spring-boot-docs/src/main/asciidoc/deployment.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ Spring Boot application can be started as Windows service using
572572
https://github.com/kohsuke/winsw[`winsw`].
573573

574574
A sample https://github.com/snicoll-scratches/spring-boot-daemon[maintained separately]
575-
to the core of Spring Boot describes steps by steps how you can create a Windows service for
575+
to the core of Spring Boot describes step by step how you can create a Windows service for
576576
your Spring Boot application.
577577

578578

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3964,7 +3964,7 @@ when searching for beans.
39643964

39653965
TIP: You need to be very careful about the order that bean definitions are added as these
39663966
conditions are evaluated based on what has been processed so far. For this reason,
3967-
we recommend only using `@ConditionalOnBean` and `@ConditionalOnMissingBean` annotations
3967+
we recommend only using `@ConditionalOnBean` and `@ConditionalOnMissingBean` annotations
39683968
on auto-configuration classes (since these are guaranteed to load after any user-define
39693969
beans definitions have been added).
39703970

spring-boot-docs/src/main/asciidoc/using-spring-boot.adoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ dependencies out-of-the-box so you may want to have a look to the
913913
{propdeps-plugin}[`propdeps-plugin`] in the meantime.
914914

915915
TIP: If you want to ensure that devtools is never included in a production build, you can
916-
use set the `excludeDevtools` build property to completely remove the JAR. The property is
916+
use the `excludeDevtools` build property to completely remove the JAR. The property is
917917
supported with both the Maven and Gradle plugins.
918918

919919

@@ -1058,7 +1058,7 @@ in the same way.
10581058
==== Customizing the restart classloader
10591059
As described in the <<using-spring-boot-restart-vs-reload>> section above, restart
10601060
functionality is implemented by using two classloaders. For most applications this
1061-
approach works well, however, sometimes in can cause classloading issues.
1061+
approach works well, however, sometimes it can cause classloading issues.
10621062

10631063
By default, any open project in your IDE will be loaded using the "`restart`" classloader,
10641064
and any regular `.jar` file will be loaded using the "`base`" classloader. If you work on
@@ -1067,7 +1067,7 @@ customize things. To do this you can create a `META-INF/spring-devtools.properti
10671067

10681068
The `spring-devtools.properties` file can contain `restart.exclude.` and
10691069
`restart.include.` prefixed properties. The `include` elements are items that should be
1070-
pulled-up into the "`restart`" classloader, and the `exclude` elements are items that
1070+
pulled up into the "`restart`" classloader, and the `exclude` elements are items that
10711071
should be pushed down into the "`base`" classloader. The value of the property is a regex
10721072
pattern that will be applied to the classpath.
10731073

spring-boot-integration-tests/spring-boot-gradle-tests/src/test/java/org/springframework/boot/gradle/Versions.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public static String getSpringVersion() {
5151

5252
private static String evaluateExpression(String expression) {
5353
try {
54-
XPathFactory xPathfactory = XPathFactory.newInstance();
55-
XPath xpath = xPathfactory.newXPath();
54+
XPathFactory xPathFactory = XPathFactory.newInstance();
55+
XPath xpath = xPathFactory.newXPath();
5656
XPathExpression expr = xpath.compile(expression);
5757
String version = expr.evaluate(
5858
new InputSource(new FileReader("target/dependencies-pom.xml")));

spring-boot-integration-tests/spring-boot-gradle-tests/src/test/java/org/springframework/boot/gradle/WarPackagingTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ public static void createProject() throws IOException {
7272
}
7373

7474
@Test
75-
public void onlyTomcatIsPackackedInWebInfLibProvided() throws IOException {
75+
public void onlyTomcatIsPackagedInWebInfLibProvided() throws IOException {
7676
checkWebInfEntriesForServletContainer("tomcat",
7777
TOMCAT_EXPECTED_IN_WEB_INF_LIB_PROVIDED);
7878
}
7979

8080
@Test
81-
public void onlyJettyIsPackackedInWebInfLibProvided() throws IOException {
81+
public void onlyJettyIsPackagedInWebInfLibProvided() throws IOException {
8282
checkWebInfEntriesForServletContainer("jetty",
8383
JETTY_EXPECTED_IN_WEB_INF_LIB_PROVIDED);
8484
}

spring-boot-samples/spring-boot-sample-actuator-ui/src/main/java/sample/actuator/ui/SampleActuatorUiApplication.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public String foo() {
4848
@Bean
4949
public SecurityProperties securityProperties() {
5050
SecurityProperties security = new SecurityProperties();
51-
security.getBasic().setPath(""); // empty so home page is unsecured
51+
security.getBasic().setPath(""); // empty so home page is insecured
5252
return security;
5353
}
5454

Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import static org.junit.Assert.assertTrue;
3737

3838
/**
39-
* Integration tests for unsecured service endpoints (even with Spring Security on
39+
* Integration tests for insecured service endpoints (even with Spring Security on
4040
* classpath).
4141
*
4242
* @author Dave Syer
@@ -46,7 +46,7 @@
4646
@WebIntegrationTest(value = { "management.security.enabled:false" }, randomPort = true)
4747
@DirtiesContext
4848
@ActiveProfiles("unsecure-management")
49-
public class UnsecureManagementSampleActuatorApplicationTests {
49+
public class InsecureManagementSampleActuatorApplicationTests {
5050

5151
@Value("${local.server.port}")
5252
private int port;
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import static org.junit.Assert.assertFalse;
3535

3636
/**
37-
* Integration tests for unsecured service endpoints (even with Spring Security on
37+
* Integration tests for insecured service endpoints (even with Spring Security on
3838
* classpath).
3939
*
4040
* @author Dave Syer
@@ -43,7 +43,7 @@
4343
@SpringApplicationConfiguration(SampleActuatorApplication.class)
4444
@WebIntegrationTest(value = { "security.basic.enabled:false" }, randomPort = true)
4545
@DirtiesContext
46-
public class UnsecureSampleActuatorApplicationTests {
46+
public class InsecureSampleActuatorApplicationTests {
4747

4848
@Value("${local.server.port}")
4949
private int port;
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import static org.junit.Assert.assertFalse;
3535

3636
/**
37-
* Integration tests for unsecured service endpoints (even with Spring Security on
37+
* Integration tests for insecured service endpoints (even with Spring Security on
3838
* classpath).
3939
*
4040
* @author Dave Syer
@@ -44,7 +44,7 @@
4444
@WebIntegrationTest(value = { "security.basic.enabled:false",
4545
"server.servletPath:/spring" }, randomPort = true)
4646
@DirtiesContext
47-
public class ServletPathUnsecureSampleActuatorApplicationTests {
47+
public class ServletPathInsecureSampleActuatorApplicationTests {
4848

4949
@Value("${local.server.port}")
5050
private int port;

spring-boot-samples/spring-boot-sample-data-rest/src/main/java/sample/data/rest/service/CityRepository.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.springframework.data.repository.query.Param;
2525
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
2626

27-
@RepositoryRestResource(collectionResourceRel = "citys", path = "cities")
27+
@RepositoryRestResource(collectionResourceRel = "cities", path = "cities")
2828
interface CityRepository extends PagingAndSortingRepository<City, Long> {
2929

3030
Page<City> findByNameContainingAndCountryContainingAllIgnoringCase(

spring-boot-samples/spring-boot-sample-data-rest/src/test/java/sample/data/rest/SampleDataRestApplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@ public void findByContaining() throws Exception {
8383
this.mvc.perform(
8484
get("/api/cities/search/findByNameContainingAndCountryContainingAllIgnoringCase?name=&country=UK"))
8585
.andExpect(status().isOk())
86-
.andExpect(jsonPath("_embedded.citys", hasSize(3)));
86+
.andExpect(jsonPath("_embedded.cities", hasSize(3)));
8787
}
8888
}

spring-boot-samples/spring-boot-sample-data-solr/src/main/java/sample/data/solr/SampleSolrApplication.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public void run(String... args) throws Exception {
4646
System.out.println();
4747

4848
// fetch a single product
49-
System.out.println("Products founds with findByNameStartingWith('So'):");
49+
System.out.println("Products found with findByNameStartingWith('So'):");
5050
System.out.println("--------------------------------");
5151
for (Product product : this.repository.findByNameStartingWith("So")) {
5252
System.out.println(product);

spring-boot-samples/spring-boot-sample-metrics-opentsdb/README.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ $ docker-compose up
88
----
99

1010
Run the app and ping the home page (http://localhost:8080) a few times. Go and look at
11-
the result in the TDB UI, e.g.
11+
the result in the TSD UI, e.g.
1212

1313
[source,indent=0]
1414
----
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import java.util.concurrent.ConcurrentMap;
2121
import java.util.concurrent.atomic.AtomicLong;
2222

23-
public class InMemoryMessageRespository implements MessageRepository {
23+
public class InMemoryMessageRepository implements MessageRepository {
2424

2525
private static AtomicLong counter = new AtomicLong();
2626

spring-boot-samples/spring-boot-sample-web-groovy-templates/src/main/java/sample/groovytemplates/SampleGroovyTemplateApplication.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class SampleGroovyTemplateApplication {
2626

2727
@Bean
2828
public MessageRepository messageRepository() {
29-
return new InMemoryMessageRespository();
29+
return new InMemoryMessageRepository();
3030
}
3131

3232
@Bean

spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/ConfigurationMetadataRepositoryJsonBuilder.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,17 @@ public ConfigurationMetadataRepositoryJsonBuilder withJsonResource(
7171
* ignored.
7272
* <p>
7373
* Leaves the stream open when done.
74-
* @param inputstream the source input stream
74+
* @param inputStream the source input stream
7575
* @param charset the charset of the input
7676
* @return this builder
7777
* @throws IOException in case of I/O errors
7878
*/
7979
public ConfigurationMetadataRepositoryJsonBuilder withJsonResource(
80-
InputStream inputstream, Charset charset) throws IOException {
81-
if (inputstream == null) {
80+
InputStream inputStream, Charset charset) throws IOException {
81+
if (inputStream == null) {
8282
throw new IllegalArgumentException("InputStream must not be null.");
8383
}
84-
this.repositories.add(add(inputstream, charset));
84+
this.repositories.add(add(inputStream, charset));
8585
return this;
8686
}
8787

spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/metadata/JsonMarshaller.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ private JSONObject toJsonObject(ItemMetadata item) {
8989
}
9090
ItemDeprecation deprecation = item.getDeprecation();
9191
if (deprecation != null) {
92-
jsonObject.put("deprecated", true); // backward compat
92+
jsonObject.put("deprecated", true); // backward compatibility
9393
JSONObject deprecationJsonObject = new JSONObject();
9494
if (deprecation.getReason() != null) {
9595
deprecationJsonObject.put("reason", deprecation.getReason());

spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataAnnotationProcessorTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public void deprecatedProperties() throws Exception {
188188
}
189189

190190
@Test
191-
public void singleDeprecatedProprety() throws Exception {
191+
public void singleDeprecatedProperty() throws Exception {
192192
Class<?> type = DeprecatedSingleProperty.class;
193193
ConfigurationMetadata metadata = compile(type);
194194
assertThat(metadata, containsGroup("singledeprecated").fromSource(type));

spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/metadata/ConfigurationMetadataTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ public void toDashedCaseCamelCase() {
3434
}
3535

3636
@Test
37-
public void toDashedCaseWordsUnderScore() {
37+
public void toDashedCaseWordsUnderscore() {
3838
assertThat(toDashedCase("Word_With_underscore"), is("word_with_underscore"));
3939
}
4040

4141
@Test
42-
public void toDashedCaseWordsSeveralUnderScores() {
42+
public void toDashedCaseWordsSeveralUnderscores() {
4343
assertThat(toDashedCase("Word___With__underscore"),
4444
is("word___with__underscore"));
4545
}

0 commit comments

Comments
 (0)