From b7bf3ca62a8854cb0422535f272dff985d77b5e0 Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Sun, 6 Sep 2020 16:16:18 -0700 Subject: [PATCH] Disabled warning message for StatListGetter#get(short) assigning #get() and checking null is a common usage --- core/src/com/riiablo/attributes/StatListGetter.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/com/riiablo/attributes/StatListGetter.java b/core/src/com/riiablo/attributes/StatListGetter.java index bddb420f..1c67b1b8 100644 --- a/core/src/com/riiablo/attributes/StatListGetter.java +++ b/core/src/com/riiablo/attributes/StatListGetter.java @@ -75,11 +75,7 @@ public final class StatListGetter implements Iterable { /** @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); }