mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-17 14:03:17 +08:00
refactor: replace statement with expression lambda
This commit is contained in:
@@ -16,9 +16,7 @@ public enum ItemUseTarget {
|
||||
static {
|
||||
Stream.of(values())
|
||||
.forEach(
|
||||
e -> {
|
||||
map.put(e.getValue(), e);
|
||||
});
|
||||
e -> map.put(e.getValue(), e));
|
||||
}
|
||||
|
||||
private final int value;
|
||||
|
||||
Reference in New Issue
Block a user