You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2021/12/16 21:21:08 UTC

[logging-log4j2] branch release-2.x updated: Fix compiler warning.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new bbf0f55  Fix compiler warning.
bbf0f55 is described below

commit bbf0f55c0a9036b3fd844afa330d6472da48cf44
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Dec 16 16:12:26 2021 -0500

    Fix compiler warning.
---
 .../src/main/java/org/apache/log4j/config/PropertiesConfiguration.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/log4j-1.2-api/src/main/java/org/apache/log4j/config/PropertiesConfiguration.java b/log4j-1.2-api/src/main/java/org/apache/log4j/config/PropertiesConfiguration.java
index f20d26c..8248499 100644
--- a/log4j-1.2-api/src/main/java/org/apache/log4j/config/PropertiesConfiguration.java
+++ b/log4j-1.2-api/src/main/java/org/apache/log4j/config/PropertiesConfiguration.java
@@ -526,7 +526,7 @@ public class PropertiesConfiguration  extends Log4j1Configuration {
         // name-value pairs associated to that filter
         int fIdx = filterPrefix.length();
         SortedMap<String, List<NameValue>> filters = new TreeMap<>();
-        Enumeration e = props.keys();
+        Enumeration<?> e = props.keys();
         String name = "";
         while (e.hasMoreElements()) {
             String key = (String) e.nextElement();