See gh-4419
This commit is contained in:
Stephane Nicoll 2015-11-10 14:52:07 +01:00
parent 387faa786b
commit 3311419a08
1 changed files with 3 additions and 3 deletions

View File

@ -81,12 +81,12 @@ public class EndpointProperties {
* into account the global default.
* @param environment the Spring environment or {@code null}.
* @param sensitive the endpoint property or {@code null}
* @param sensitiveDefaut the default setting to use if no environment property is
* @param sensitiveDefault the default setting to use if no environment property is
* defined
* @return if the endpoint is sensitive
*/
public static boolean isSensitive(Environment environment, Boolean sensitive,
boolean sensitiveDefaut) {
boolean sensitiveDefault) {
if (sensitive != null) {
return sensitive;
}
@ -94,7 +94,7 @@ public class EndpointProperties {
&& environment.containsProperty(ENDPOINTS_SENSITIVE_PROPERTY)) {
return environment.getProperty(ENDPOINTS_SENSITIVE_PROPERTY, Boolean.class);
}
return sensitiveDefaut;
return sensitiveDefault;
}
}