Polish
This commit is contained in:
parent
a8ae4d1a3f
commit
b63922d59d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue