Commit 5b211706 authored by izeye's avatar izeye Committed by Stephane Nicoll

Polish

Closes gh-4069
parent db0212b8
...@@ -148,7 +148,7 @@ public class JobLauncherCommandLineRunner implements CommandLineRunner, ...@@ -148,7 +148,7 @@ public class JobLauncherCommandLineRunner implements CommandLineRunner,
else if (isStoppedOrFailed(previousExecution) && job.isRestartable()) { else if (isStoppedOrFailed(previousExecution) && job.isRestartable()) {
// Retry a failed or stopped execution // Retry a failed or stopped execution
parameters = previousExecution.getJobParameters(); parameters = previousExecution.getJobParameters();
// Non-identifying additional parameters can be added to a retry // Non-identifying additional parameters can be removed to a retry
removeNonIdentifying(additionals); removeNonIdentifying(additionals);
} }
else if (incrementer != null) { else if (incrementer != null) {
......
...@@ -23,7 +23,7 @@ import org.springframework.context.annotation.Condition; ...@@ -23,7 +23,7 @@ import org.springframework.context.annotation.Condition;
* to create composite conditions, for example: * to create composite conditions, for example:
* *
* <pre class="code"> * <pre class="code">
* static class OnJndiOrProperty extends AllNestedConditions { * static class OnJndiAndProperty extends AllNestedConditions {
* *
* &#064;ConditionalOnJndi() * &#064;ConditionalOnJndi()
* static class OnJndi { * static class OnJndi {
......
...@@ -88,7 +88,7 @@ public final class ConditionEvaluationReport { ...@@ -88,7 +88,7 @@ public final class ConditionEvaluationReport {
} }
/** /**
* Records the name of the classes that have been excluded from condition evaluation. * Records the names of the classes that have been excluded from condition evaluation.
* @param exclusions the names of the excluded classes * @param exclusions the names of the excluded classes
*/ */
public void recordExclusions(Collection<String> exclusions) { public void recordExclusions(Collection<String> exclusions) {
...@@ -134,7 +134,7 @@ public final class ConditionEvaluationReport { ...@@ -134,7 +134,7 @@ public final class ConditionEvaluationReport {
} }
/** /**
* Returns the name of the classes that have been excluded from condition evaluation. * Returns the names of the classes that have been excluded from condition evaluation.
* @return the names of the excluded classes * @return the names of the excluded classes
*/ */
public List<String> getExclusions() { public List<String> getExclusions() {
...@@ -142,7 +142,7 @@ public final class ConditionEvaluationReport { ...@@ -142,7 +142,7 @@ public final class ConditionEvaluationReport {
} }
/** /**
* Returns the name of the classes that were evaluated but were not conditional. * Returns the names of the classes that were evaluated but were not conditional.
* @return the names of the unconditional classes * @return the names of the unconditional classes
*/ */
public Set<String> getUnconditionalClasses() { public Set<String> getUnconditionalClasses() {
......
...@@ -23,7 +23,7 @@ import org.springframework.context.annotation.Condition; ...@@ -23,7 +23,7 @@ import org.springframework.context.annotation.Condition;
* be used to create composite conditions, for example: * be used to create composite conditions, for example:
* *
* <pre class="code"> * <pre class="code">
* static class OnJndiOrProperty extends NoneOfNestedConditions { * static class OnNeitherJndiNorProperty extends NoneOfNestedConditions {
* *
* &#064;ConditionalOnJndi() * &#064;ConditionalOnJndi()
* static class OnJndi { * static class OnJndi {
......
...@@ -43,7 +43,7 @@ class OnEnabledResourceChainCondition extends SpringBootCondition { ...@@ -43,7 +43,7 @@ class OnEnabledResourceChainCondition extends SpringBootCondition {
binder.bind(new PropertySourcesPropertyValues(environment.getPropertySources())); binder.bind(new PropertySourcesPropertyValues(environment.getPropertySources()));
Boolean match = properties.getChain().getEnabled(); Boolean match = properties.getChain().getEnabled();
return new ConditionOutcome(match, "Resource chain is " return new ConditionOutcome(match, "Resource chain is "
+ (match ? "enabled" : "disabled" + ")")); + (match ? "enabled" : "disabled"));
} }
} }
...@@ -197,7 +197,7 @@ content into your application; rather pick only the properties that you need. ...@@ -197,7 +197,7 @@ content into your application; rather pick only the properties that you need.
spring.jackson.parser.*= # see Jackson's JsonParser.Feature spring.jackson.parser.*= # see Jackson's JsonParser.Feature
spring.jackson.serialization.*= # see Jackson's SerializationFeature spring.jackson.serialization.*= # see Jackson's SerializationFeature
spring.jackson.serialization-inclusion= # Controls the inclusion of properties during serialization (see Jackson's JsonInclude.Include) spring.jackson.serialization-inclusion= # Controls the inclusion of properties during serialization (see Jackson's JsonInclude.Include)
spring.jackson.time-zone # Time zone used when formatting dates. Configured using any recognized time zone identifier, for example "America/Los_Angeles" or "GMT+10" spring.jackson.time-zone= # Time zone used when formatting dates. Configured using any recognized time zone identifier, for example "America/Los_Angeles" or "GMT+10"
# THYMELEAF ({sc-spring-boot-autoconfigure}/thymeleaf/ThymeleafAutoConfiguration.{sc-ext}[ThymeleafAutoConfiguration]) # THYMELEAF ({sc-spring-boot-autoconfigure}/thymeleaf/ThymeleafAutoConfiguration.{sc-ext}[ThymeleafAutoConfiguration])
spring.thymeleaf.check-template-location=true spring.thymeleaf.check-template-location=true
......
...@@ -2574,7 +2574,7 @@ server using the URL `mongodb://localhost/test`: ...@@ -2574,7 +2574,7 @@ server using the URL `mongodb://localhost/test`:
} }
---- ----
You can set `spring.data.mongodb.uri` property to change the `url` and configure You can set `spring.data.mongodb.uri` property to change the URL and configure
additional settings such as the _replica set_: additional settings such as the _replica set_:
[source,properties,indent=0] [source,properties,indent=0]
...@@ -2990,7 +2990,7 @@ a `HazelcastInstance` has been auto-configured, it is automatically wrapped in a ...@@ -2990,7 +2990,7 @@ a `HazelcastInstance` has been auto-configured, it is automatically wrapped in a
`CacheManager`. `CacheManager`.
If for some reason you need a different `HazelcastInstance` for caching, you can If for some reason you need a different `HazelcastInstance` for caching, you can
request Spring Boot to create a separate one that will only used by the request Spring Boot to create a separate one that will be only used by the
`CacheManager`: `CacheManager`:
[source,properties,indent=0] [source,properties,indent=0]
......
...@@ -622,7 +622,7 @@ you can use the exclude attribute of `@EnableAutoConfiguration` to disable them. ...@@ -622,7 +622,7 @@ you can use the exclude attribute of `@EnableAutoConfiguration` to disable them.
If the class is not on the classpath, you can use the `excludeName` attribute of If the class is not on the classpath, you can use the `excludeName` attribute of
the annotation and specify the fully qualified name instead. Finally, you can also the annotation and specify the fully qualified name instead. Finally, you can also
control the list of auto-configuration classes to excludes via the control the list of auto-configuration classes to exclude via the
`spring.autoconfigure.exclude` property. `spring.autoconfigure.exclude` property.
TIP: You can define exclusions both at the annotation level and using the property. TIP: You can define exclusions both at the annotation level and using the property.
......
...@@ -355,7 +355,7 @@ public class RelaxedDataBinderTests { ...@@ -355,7 +355,7 @@ public class RelaxedDataBinderTests {
} }
@Test @Test
public void testBindNestedMapOfStringWithUnderscoreAndupperCase() throws Exception { public void testBindNestedMapOfStringWithUnderscoreAndUpperCase() throws Exception {
TargetWithNestedMapOfString target = new TargetWithNestedMapOfString(); TargetWithNestedMapOfString target = new TargetWithNestedMapOfString();
bind(target, "NESTED_FOO: bar\n" + "NESTED_VALUE_FOO: 123"); bind(target, "NESTED_FOO: bar\n" + "NESTED_VALUE_FOO: 123");
assertEquals("bar", target.getNested().get("FOO")); assertEquals("bar", target.getNested().get("FOO"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment