itemstats: Replace sambda with method reference
This commit is contained in:
@@ -77,7 +77,7 @@ public class SaradominBrew implements Effect
|
||||
)
|
||||
).toArray(StatChange[]::new));
|
||||
changes.setPositivity(Stream.of(changes.getStatChanges())
|
||||
.map(sc -> sc.getPositivity())
|
||||
.map(StatChange::getPositivity)
|
||||
.max(Comparator.comparing(Enum::ordinal)).get());
|
||||
return changes;
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ public class SuperRestore implements Effect
|
||||
return calc.effect(client);
|
||||
})
|
||||
).toArray(StatChange[]::new));
|
||||
changes.setPositivity(Stream.of(changes.getStatChanges()).map(sc -> sc.getPositivity()).max(Comparator.comparing(Enum::ordinal)).get());
|
||||
changes.setPositivity(Stream.of(changes.getStatChanges()).map(StatChange::getPositivity).max(Comparator.comparing(Enum::ordinal)).get());
|
||||
return changes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user