Add suppression for Java 8 Map API

This commit is contained in:
Paul Schaub 2022-08-08 15:07:45 +02:00
parent 942b287beb
commit 60779b921e
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -30,6 +30,7 @@ public class InMemorySubkeyLookup implements SubkeyLookup {
public void storeCertificateSubkeyIds(String certificate, List<Long> subkeyIds) {
for (long subkeyId : subkeyIds) {
Set<String> certificates = subkeyMap.get(subkeyId);
// noinspection Java8MapApi
if (certificates == null) {
certificates = new HashSet<>();
subkeyMap.put(subkeyId, certificates);