mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-18 00:19:52 +08:00
refactor: we don't need explicit types here
This commit is contained in:
@@ -4,7 +4,7 @@ import java.util.*;
|
||||
import java.util.concurrent.ThreadLocalRandom;
|
||||
|
||||
public class WeightedList<E> {
|
||||
private final NavigableMap<Double, E> map = new TreeMap<Double, E>();
|
||||
private final NavigableMap<Double, E> map = new TreeMap<>();
|
||||
private double total = 0;
|
||||
|
||||
public WeightedList() {}
|
||||
|
||||
Reference in New Issue
Block a user