This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 2edd0d171855ea74b5876ac1487d538a2f210d37 Author: Gary Gregory <[email protected]> AuthorDate: Wed Jan 19 07:49:36 2022 -0500 In-line single-use local variable. --- log4j-api/src/main/java/org/apache/logging/log4j/Level.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/Level.java b/log4j-api/src/main/java/org/apache/logging/log4j/Level.java index 7cb8247..b5bf0de 100644 --- a/log4j-api/src/main/java/org/apache/logging/log4j/Level.java +++ b/log4j-api/src/main/java/org/apache/logging/log4j/Level.java @@ -316,8 +316,7 @@ public final class Level implements Comparable<Level>, Serializable { * @return An array of Levels. */ public static Level[] values() { - final Collection<Level> values = Level.LEVELS.values(); - return values.toArray(new Level[0]); + return Level.LEVELS.values().toArray(new Level[0]); } /**
