Skip to content

Commit b63922d

Browse files
committed
Polish
1 parent a8ae4d1 commit b63922d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/HealthMvcEndpoint.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ private Health getHealth(Principal principal) {
130130
}
131131

132132
private boolean secure(Principal principal) {
133-
return principal != null && !principal.getClass().getName().contains("Anonymous");
133+
return (principal != null && !principal.getClass().getName()
134+
.contains("Anonymous"));
134135
}
135136

136137
private boolean useCachedValue(Principal principal) {

spring-boot/src/main/java/org/springframework/boot/ResourceBanner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ private Map<String, Object> getVersionsMap(Class<?> sourceClass) {
9393
Map<String, Object> versions = new HashMap<String, Object>();
9494
versions.put("application.version", getVersionString(appVersion, false));
9595
versions.put("spring-boot.version", getVersionString(bootVersion, false));
96-
versions.put("spring-boot.formatted-version", getVersionString(bootVersion, true));
9796
versions.put("application.formatted-version", getVersionString(appVersion, true));
97+
versions.put("spring-boot.formatted-version", getVersionString(bootVersion, true));
9898
return versions;
9999
}
100100

0 commit comments

Comments
 (0)