Remove usages of "whitelist" in Firestore.
@@ -86,20 +86,20 @@ abstract class AbstractStream<ReqT, RespT, CallbackT extends StreamCallback>
dispatcher.run(
() -> {
if (Logger.isDebugEnabled()) {
- Map<String, String> whitelistedHeaders = new HashMap<>();
+ Map<String, String> allowlistedHeaders = new HashMap<>();
for (String header : headers.keys()) {
if (Datastore.WHITE_LISTED_HEADERS.contains(header.toLowerCase(Locale.ENGLISH))) {
- whitelistedHeaders.put(
+ allowlistedHeaders.put(
header,
headers.get(Metadata.Key.of(header, Metadata.ASCII_STRING_MARSHALLER)));
}
}
- if (!whitelistedHeaders.isEmpty()) {
+ if (!allowlistedHeaders.isEmpty()) {
Logger.debug(
AbstractStream.this.getClass().getSimpleName(),
"(%x) Stream received headers: %s",
System.identityHashCode(AbstractStream.this),
- whitelistedHeaders);
+ allowlistedHeaders);
}
}
});
