Commit b63922d5 authored by Phillip Webb's avatar Phillip Webb

Polish

parent a8ae4d1a
......@@ -130,7 +130,8 @@ public class HealthMvcEndpoint implements MvcEndpoint {
}
private boolean secure(Principal principal) {
return principal != null && !principal.getClass().getName().contains("Anonymous");
return (principal != null && !principal.getClass().getName()
.contains("Anonymous"));
}
private boolean useCachedValue(Principal principal) {
......
......@@ -93,8 +93,8 @@ public class ResourceBanner implements Banner {
Map<String, Object> versions = new HashMap<String, Object>();
versions.put("application.version", getVersionString(appVersion, false));
versions.put("spring-boot.version", getVersionString(bootVersion, false));
versions.put("spring-boot.formatted-version", getVersionString(bootVersion, true));
versions.put("application.formatted-version", getVersionString(appVersion, true));
versions.put("spring-boot.formatted-version", getVersionString(bootVersion, true));
return versions;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment