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
1 changed files with 2 additions and 2 deletions

View File

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