Reuse MultiMap constructor of Whitelist selection strategy
This commit is contained in:
parent
8a2051904a
commit
09e0a5360d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue