Convert Constants into an interface. git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1621037 13f79535-47bb-0310-9956-ffa450edef68
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/9dc911a1 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/9dc911a1 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/9dc911a1 Branch: refs/heads/messaging-module Commit: 9dc911a1fd22927a7557e8d7e12278114a6f5d50 Parents: 6b08625 Author: mattsicker <mattsicker@unknown> Authored: Thu Aug 28 04:28:33 2014 +0000 Committer: mattsicker <mattsicker@unknown> Committed: Thu Aug 28 04:28:33 2014 +0000 ---------------------------------------------------------------------- .../logging/log4j/core/util/Constants.java | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/9dc911a1/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Constants.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Constants.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Constants.java index 20e47b6..f5061be 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Constants.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/util/Constants.java @@ -21,38 +21,32 @@ import org.apache.logging.log4j.util.PropertiesUtil; /** * Log4j Constants. */ -public final class Constants { +public interface Constants { /** * Name of the system property to use to identify the LogEvent factory. */ - public static final String LOG4J_LOG_EVENT_FACTORY = "Log4jLogEventFactory"; + String LOG4J_LOG_EVENT_FACTORY = "Log4jLogEventFactory"; /** * Name of the system property to use to identify the ContextSelector Class. */ - public static final String LOG4J_CONTEXT_SELECTOR = "Log4jContextSelector"; + String LOG4J_CONTEXT_SELECTOR = "Log4jContextSelector"; - public static final String LOG4J_DEFAULT_STATUS_LEVEL = "Log4jDefaultStatusLevel"; + String LOG4J_DEFAULT_STATUS_LEVEL = "Log4jDefaultStatusLevel"; /** * JNDI context name string literal. */ - public static final String JNDI_CONTEXT_NAME = "java:comp/env/log4j/context-name"; + String JNDI_CONTEXT_NAME = "java:comp/env/log4j/context-name"; /** * Line separator. */ - public static final String LINE_SEPARATOR = PropertiesUtil.getProperties().getStringProperty("line.separator", "\n"); + String LINE_SEPARATOR = PropertiesUtil.getProperties().getStringProperty("line.separator", "\n"); /** * Number of milliseconds in a second. */ - public static final int MILLIS_IN_SECONDS = 1000; - - /** - * Prevent class instantiation. - */ - private Constants() { - } + int MILLIS_IN_SECONDS = 1000; }
