mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-14 09:47:35 +07:00
Disabled warning message for StatListGetter#get(short)
assigning #get() and checking null is a common usage
This commit is contained in:
@ -75,11 +75,7 @@ public final class StatListGetter implements Iterable<StatGetter> {
|
|||||||
/** @see StatList#indexOf(int, short) */
|
/** @see StatList#indexOf(int, short) */
|
||||||
public StatGetter get(short stat) {
|
public StatGetter get(short stat) {
|
||||||
final int index = indexOf(stat);
|
final int index = indexOf(stat);
|
||||||
if (index < 0) {
|
if (index < 0) return null;
|
||||||
log.warn("stats({}) list({}) did not contain stat({})", stats, list, stat);
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return tuple.set(stats, index);
|
return tuple.set(stats, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user