You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By moving the exists and readable checks from
DiskSpaceHealthIndicatorProperties to DiskSpaceHealthIndicator they are
executed later. This gives the application the possibility to access the
configured path and to create it before the DiskSpaceHealthIndicator
actually needs it.
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/system/DiskSpaceHealthContributorAutoConfiguration.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/system/DiskSpaceHealthIndicatorProperties.java
-2Lines changed: 0 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -48,8 +48,6 @@ public File getPath() {
48
48
}
49
49
50
50
publicvoidsetPath(Filepath) {
51
-
Assert.isTrue(path.exists(), () -> "Path '" + path + "' does not exist");
0 commit comments