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 2020/11/26 14:07:05 UTC
[logging-log4j2] 02/05: return not needed.
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
commit 8eb211beb71069a179adbffa0be315809f0c1b79
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Nov 22 14:27:22 2020 -0500
return not needed.
---
.../src/main/java/org/apache/logging/log4j/core/lookup/Log4jLookup.java | 1 -
.../src/main/java/org/apache/logging/log4j/lookup/MapMessageLookup.java | 1 -
2 files changed, 2 deletions(-)
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/Log4jLookup.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/Log4jLookup.java
index 2f1ef67..7e01a52 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/Log4jLookup.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/Log4jLookup.java
@@ -86,7 +86,6 @@ public class Log4jLookup extends AbstractConfigurationAwareLookup {
}
} catch (final URISyntaxException use) {
LOGGER.error(use);
- return null;
}
}
}
diff --git a/log4j-samples/log4j-samples-loggerProperties/src/main/java/org/apache/logging/log4j/lookup/MapMessageLookup.java b/log4j-samples/log4j-samples-loggerProperties/src/main/java/org/apache/logging/log4j/lookup/MapMessageLookup.java
index 35e6ef3..7cd7885 100644
--- a/log4j-samples/log4j-samples-loggerProperties/src/main/java/org/apache/logging/log4j/lookup/MapMessageLookup.java
+++ b/log4j-samples/log4j-samples-loggerProperties/src/main/java/org/apache/logging/log4j/lookup/MapMessageLookup.java
@@ -61,7 +61,6 @@ public class MapMessageLookup extends AbstractLookup {
return mapMessage.get(key);
} catch (final Exception ex) {
LOGGER.warn(LOOKUP, "Error while getting property [{}].", key, ex);
- return null;
}
}
return null;