Disabled warning message for StatListGetter#get(short)

assigning #get() and checking null is a common usage
This commit is contained in:
Collin Smith 2020-09-06 16:16:18 -07:00
parent 947862be1a
commit b7bf3ca62a

View File

@ -75,11 +75,7 @@ public final class StatListGetter implements Iterable<StatGetter> {
/** @see StatList#indexOf(int, short) */
public StatGetter get(short stat) {
final int index = indexOf(stat);
if (index < 0) {
log.warn("stats({}) list({}) did not contain stat({})", stats, list, stat);
return null;
}
if (index < 0) return null;
return tuple.set(stats, index);
}