Browse Source

Merge pull request #20931 from izeye

* pr/20931:
  Polish

Closes gh-20931
pull/20936/head
Stephane Nicoll 6 years ago
parent
commit
c3b61db8cf
  1. 8
      spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/hazelcast/HazelcastAutoConfigurationTests.java
  2. 4
      spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc

8
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/hazelcast/HazelcastAutoConfigurationTests.java

@ -59,8 +59,8 @@ class HazelcastAutoConfigurationTests { @@ -59,8 +59,8 @@ class HazelcastAutoConfigurationTests {
}
/**
* A test {link {@link URLClassLoader} that emulates the default Hazelcast Jet
* configuration file exists on the classpath.
* A test {@link URLClassLoader} that emulates the default Hazelcast Jet configuration
* file exists on the classpath.
*/
static class JetConfigClassLoader extends URLClassLoader {
@ -73,12 +73,12 @@ class HazelcastAutoConfigurationTests { @@ -73,12 +73,12 @@ class HazelcastAutoConfigurationTests {
@Override
public URL getResource(String name) {
if (name.equals("hazelcast-jet-default.yaml")) {
return getEmulatedJestConfigUrl();
return getEmulatedJetConfigUrl();
}
return super.getResource(name);
}
private URL getEmulatedJestConfigUrl() {
private URL getEmulatedJetConfigUrl() {
try {
return FALLBACK.getURL();
}

4
spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc

@ -236,10 +236,10 @@ For example, we can export the "Readiness" state of the application to a file so @@ -236,10 +236,10 @@ For example, we can export the "Readiness" state of the application to a file so
[source,java,indent=0]
----
@Component
public class ReadinessStateExporter implements ApplicationListener<LivenessStateChangedEvent> {
public class ReadinessStateExporter implements ApplicationListener<ReadinessStateChangedEvent> {
@Override
public void onApplicationEvent(LivenessStateChangedEvent event) {
public void onApplicationEvent(ReadinessStateChangedEvent event) {
switch (event.getReadinessState().getStatus()) {
case READY:
// create file /tmp/healthy

Loading…
Cancel
Save