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:
parent
8a2051904a
commit
09e0a5360d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue