parent
387faa786b
commit
3311419a08
|
|
@ -81,12 +81,12 @@ public class EndpointProperties {
|
||||||
* into account the global default.
|
* into account the global default.
|
||||||
* @param environment the Spring environment or {@code null}.
|
* @param environment the Spring environment or {@code null}.
|
||||||
* @param sensitive the endpoint property 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
|
* defined
|
||||||
* @return if the endpoint is sensitive
|
* @return if the endpoint is sensitive
|
||||||
*/
|
*/
|
||||||
public static boolean isSensitive(Environment environment, Boolean sensitive,
|
public static boolean isSensitive(Environment environment, Boolean sensitive,
|
||||||
boolean sensitiveDefaut) {
|
boolean sensitiveDefault) {
|
||||||
if (sensitive != null) {
|
if (sensitive != null) {
|
||||||
return sensitive;
|
return sensitive;
|
||||||
}
|
}
|
||||||
|
|
@ -94,7 +94,7 @@ public class EndpointProperties {
|
||||||
&& environment.containsProperty(ENDPOINTS_SENSITIVE_PROPERTY)) {
|
&& environment.containsProperty(ENDPOINTS_SENSITIVE_PROPERTY)) {
|
||||||
return environment.getProperty(ENDPOINTS_SENSITIVE_PROPERTY, Boolean.class);
|
return environment.getProperty(ENDPOINTS_SENSITIVE_PROPERTY, Boolean.class);
|
||||||
}
|
}
|
||||||
return sensitiveDefaut;
|
return sensitiveDefault;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue