From 09e0a5360ddd6942d303f8f0c289e379ac5b66f8 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Sun, 12 Jan 2020 18:34:21 +0100 Subject: [PATCH] Reuse MultiMap constructor of Whitelist selection strategy --- .../org/pgpainless/key/selection/keyring/impl/Whitelist.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pgpainless-core/src/main/java/org/pgpainless/key/selection/keyring/impl/Whitelist.java b/pgpainless-core/src/main/java/org/pgpainless/key/selection/keyring/impl/Whitelist.java index 6a894122..6899941d 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/key/selection/keyring/impl/Whitelist.java +++ b/pgpainless-core/src/main/java/org/pgpainless/key/selection/keyring/impl/Whitelist.java @@ -35,7 +35,7 @@ public class Whitelist { } public PubRingSelectionStrategy(Map> whitelist) { - this.whitelist = new MultiMap<>(whitelist); + this(new MultiMap<>(whitelist)); } @Override @@ -59,7 +59,7 @@ public class Whitelist { } public SecRingSelectionStrategy(Map> whitelist) { - this.whitelist = new MultiMap<>(whitelist); + this(new MultiMap<>(whitelist)); } @Override