From cb320288a410c57021f3007fb239443152f24298 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Mon, 13 Apr 2020 21:31:38 +0900 Subject: [PATCH] Polish See gh-20931 --- .../hazelcast/HazelcastAutoConfigurationTests.java | 8 ++++---- .../src/docs/asciidoc/spring-boot-features.adoc | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/hazelcast/HazelcastAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/hazelcast/HazelcastAutoConfigurationTests.java index 9fcf6f62cd..6e941f9282 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/hazelcast/HazelcastAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/hazelcast/HazelcastAutoConfigurationTests.java @@ -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 { @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(); } diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc index 8efc586c5d..78386c0e84 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc +++ b/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 [source,java,indent=0] ---- @Component - public class ReadinessStateExporter implements ApplicationListener { + public class ReadinessStateExporter implements ApplicationListener { @Override - public void onApplicationEvent(LivenessStateChangedEvent event) { + public void onApplicationEvent(ReadinessStateChangedEvent event) { switch (event.getReadinessState().getStatus()) { case READY: // create file /tmp/healthy