Skip to content

Commit f04fa32

Browse files
committed
Merge pull request #10308 from izeye:polish-20170915
* pr/10308: Polish
2 parents c536af0 + 5e35a34 commit f04fa32

File tree

9 files changed

+20
-20
lines changed

9 files changed

+20
-20
lines changed

CONTRIBUTING.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ some compilations for Spring Boot as we include a maven plugin and use it within
105105
samples. The standard build works around this restriction by launching the samples via
106106
the `maven-invoker-plugin` so that they are not part of the reactor. This works fine
107107
most of the time, however, sometimes it's useful to run a build that includes all modules
108-
(for example when using `maven-versions-plugin`. We use the full build on our CI servers
108+
(for example when using `maven-versions-plugin`). We use the full build on our CI servers
109109
and during the release process.
110110

111111
Running a full build is a two phase process.

README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ these include:
166166
* The `SpringApplication` class, providing static convenience methods that make it easy
167167
to write a stand-alone Spring Application. Its sole job is to create and refresh an
168168
appropriate Spring `ApplicationContext`
169-
* Embedded web applications with a choice of container (Tomcat or Jetty for now)
169+
* Embedded web applications with a choice of container (Tomcat, Jetty or Undertow)
170170
* First class externalized configuration support
171171
* Convenience `ApplicationContext` initializers, including support for sensible logging
172172
defaults
@@ -178,7 +178,7 @@ Spring Boot can configure large parts of common applications based on the conten
178178
of their classpath. A single `@EnableAutoConfiguration` annotation triggers
179179
auto-configuration of the Spring context.
180180

181-
Auto-configuration attempts to deduce which beans a user might need. For example, If
181+
Auto-configuration attempts to deduce which beans a user might need. For example, if
182182
`HSQLDB` is on the classpath, and the user has not configured any database connections,
183183
then they probably want an in-memory database to be defined. Auto-configuration will
184184
always back away as the user starts to define their own beans.

spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/export/atlas/AtlasPropertiesConfigAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
class AtlasPropertiesConfigAdapter extends
3232
PropertiesConfigAdapter<AtlasProperties, AtlasConfig> implements AtlasConfig {
3333

34-
private static final AtlasConfig DEFAUTLS = (k) -> null;
34+
private static final AtlasConfig DEFAULTS = (k) -> null;
3535

3636
AtlasPropertiesConfigAdapter(AtlasProperties properties) {
37-
super(properties, DEFAUTLS);
37+
super(properties, DEFAULTS);
3838
}
3939

4040
@Override

spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/web/client/RestTemplateMetricsConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ public Object postProcessBeforeInitialization(Object bean, String beanName) {
8585
@Override
8686
public Object postProcessAfterInitialization(Object bean, String beanName) {
8787
if (bean instanceof RestTemplate) {
88-
geCustomizer().customize((RestTemplate) bean);
88+
getCustomizer().customize((RestTemplate) bean);
8989
}
9090
return bean;
9191
}
9292

93-
private MetricsRestTemplateCustomizer geCustomizer() {
93+
private MetricsRestTemplateCustomizer getCustomizer() {
9494
if (this.customizer == null) {
9595
this.customizer = this.applicationContext
9696
.getBean(MetricsRestTemplateCustomizer.class);

spring-boot-actuator/src/test/java/org/springframework/boot/actuate/metrics/integration/SpringIntegrationMetricsIntegrationTests.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class SpringIntegrationMetricsIntegrationTests {
5656

5757
@Test
5858
public void springIntegrationMetrics() {
59-
this.converter.fahrenheitToCelcius(68.0);
59+
this.converter.fahrenheitToCelsius(68.0);
6060
assertThat(this.registry.find("spring.integration.channel.sends")
6161
.tags("channel", "convert.input").value(Statistic.Count, 1).meter())
6262
.isPresent();
@@ -98,27 +98,27 @@ public IntegrationFlow convert() {
9898
return (f) -> f
9999
.transform((payload) -> "{\"fahrenheit\":" + payload + "}",
100100
(e) -> e.id("toJson"))
101-
.handle(String.class, this::fahrenheitToCelcius,
101+
.handle(String.class, this::fahrenheitToCelsius,
102102
(e) -> e.id("temperatureConverter"))
103103
.transform(this::extractResult, e -> e.id("toResponse"));
104104
}
105105

106106
private double extractResult(String json) {
107107
try {
108108
return (double) new ObjectMapper().readValue(json, Map.class)
109-
.get("celcius");
109+
.get("celsius");
110110
}
111111
catch (IOException ex) {
112112
throw new RuntimeException(ex);
113113
}
114114
}
115115

116-
private String fahrenheitToCelcius(String payload, Map<String, Object> headers) {
116+
private String fahrenheitToCelsius(String payload, Map<String, Object> headers) {
117117
try {
118118
double fahrenheit = (double) new ObjectMapper()
119119
.readValue(payload, Map.class).get("fahrenheit");
120-
double celcius = (fahrenheit - 32) * (5.0 / 9.0);
121-
return "{\"celcius\":" + celcius + "}";
120+
double celsius = (fahrenheit - 32) * (5.0 / 9.0);
121+
return "{\"celsius\":" + celsius + "}";
122122
}
123123
catch (Exception ex) {
124124
throw new RuntimeException(ex);
@@ -129,7 +129,7 @@ private String fahrenheitToCelcius(String payload, Map<String, Object> headers)
129129
public interface TempConverter {
130130

131131
@Gateway(requestChannel = "convert.input")
132-
double fahrenheitToCelcius(double fahren);
132+
double fahrenheitToCelsius(double fahrenheit);
133133

134134
}
135135

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/EnableAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
/**
3737
* Enable auto-configuration of the Spring Application Context, attempting to guess and
3838
* configure beans that you are likely to need. Auto-configuration classes are usually
39-
* applied based on your classpath and what beans you have defined. For example, If you
39+
* applied based on your classpath and what beans you have defined. For example, if you
4040
* have {@code tomcat-embedded.jar} on your classpath you are likely to want a
4141
* {@link TomcatServletWebServerFactory} (unless you have defined your own
4242
* {@link ServletWebServerFactory} bean).

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ To customize the tags, provide a `@Bean` that implements `WebMvcTagsProvider`.
901901
=== WebFlux metrics
902902
Auto-configuration will enable the instrumentation of all requests handled by WebFlux
903903
controllers. A helper class, `RouterFunctionMetrics`, is also provided that can be
904-
used to instrument applications using WebFlux's funtional programming model.
904+
used to instrument applications using WebFlux's functional programming model.
905905

906906
Metrics will, by default, be generated with the name `http.server.requests`. The name
907907
can be customized using the `spring.metrics.web.server.requests-metrics-name` property.
@@ -945,7 +945,7 @@ can be customized using the `spring.metrics.web.client.requests-metrics-name` pr
945945

946946
[[production-ready-metrics-rest-template-tags]]
947947
==== RestTemplate metric tags
948-
Metrics generated by an instrumeted `RestTemplate` will, by default, be tagged with
948+
Metrics generated by an instrumented `RestTemplate` will, by default, be tagged with
949949
the following:
950950

951951
- Request's method

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ http://logging.apache.org/log4j/2.x/[Log4J2] and http://logback.qos.ch/[Logback]
13501350
case loggers are pre-configured to use console output with optional file output also
13511351
available.
13521352

1353-
By default, If you use the '`Starters`', Logback will be used for logging. Appropriate
1353+
By default, if you use the '`Starters`', Logback will be used for logging. Appropriate
13541354
Logback routing is also included to ensure that dependent libraries that use
13551355
Java Util Logging, Commons Logging, Log4J or SLF4J will all work correctly.
13561356

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ annotation to load XML configuration files.
433433
[[using-boot-auto-configuration]]
434434
== Auto-configuration
435435
Spring Boot auto-configuration attempts to automatically configure your Spring
436-
application based on the jar dependencies that you have added. For example, If
436+
application based on the jar dependencies that you have added. For example, if
437437
`HSQLDB` is on your classpath, and you have not manually configured any database
438438
connection beans, then we will auto-configure an in-memory database.
439439

@@ -579,7 +579,7 @@ One of the biggest advantages of packaging your application as jar and using an
579579
HTTP server is that you can run your application as you would any other. Debugging Spring
580580
Boot applications is also easy; you don't need any special IDE plugins or extensions.
581581

582-
NOTE: This section only covers jar based packaging, If you choose to package your
582+
NOTE: This section only covers jar based packaging, if you choose to package your
583583
application as a war file you should refer to your server and IDE documentation.
584584

585585

0 commit comments

Comments
 (0)