Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
philwebb committed Oct 20, 2023
1 parent d638bbb commit deb7942
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1684,15 +1684,13 @@ Duration timeTakenToStarted() {
}

static Startup create() {
if (ClassUtils.isPresent("jdk.crac.management.CRaCMXBean", Startup.class.getClassLoader())) {
return new CracStartup();
}
return new StandardStartup();
return (!ClassUtils.isPresent("jdk.crac.management.CRaCMXBean", Startup.class.getClassLoader()))
? new StandardStartup() : new CoordinatedRestoreAtCheckpointStartup();
}

}

private static class CracStartup extends Startup {
private static class CoordinatedRestoreAtCheckpointStartup extends Startup {

private final StandardStartup fallback = new StandardStartup();

Expand Down

0 comments on commit deb7942

Please sign in to comment.