1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-23 03:17:58 +01:00

Reuse MultiMap constructor of Whitelist selection strategy

This commit is contained in:
Paul Schaub 2020-01-12 18:34:21 +01:00
parent 8a2051904a
commit 09e0a5360d
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -35,7 +35,7 @@ public class Whitelist {
} }
public PubRingSelectionStrategy(Map<O, Set<Long>> whitelist) { public PubRingSelectionStrategy(Map<O, Set<Long>> whitelist) {
this.whitelist = new MultiMap<>(whitelist); this(new MultiMap<>(whitelist));
} }
@Override @Override
@ -59,7 +59,7 @@ public class Whitelist {
} }
public SecRingSelectionStrategy(Map<O, Set<Long>> whitelist) { public SecRingSelectionStrategy(Map<O, Set<Long>> whitelist) {
this.whitelist = new MultiMap<>(whitelist); this(new MultiMap<>(whitelist));
} }
@Override @Override