This commit is contained in:
Phillip Webb 2014-12-10 00:34:38 -08:00
parent a8ae4d1a3f
commit b63922d59d
2 changed files with 3 additions and 2 deletions

View File

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

View File

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