See gh-20931
This commit is contained in:
Johnny Lim 2020-04-13 21:31:38 +09:00 committed by Stephane Nicoll
parent 2ee73a6c83
commit cb320288a4
2 changed files with 6 additions and 6 deletions

View File

@ -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();
}

View File

@ -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