logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpo...@apache.org
Subject svn commit: r1517728 - /logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/FormattedMessage.java
Date Mon, 26 Aug 2013 23:28:48 GMT
Author: rpopma
Date: Mon Aug 26 23:28:48 2013
New Revision: 1517728

URL: http://svn.apache.org/r1517728
Log:
removed unused field, removed empty lines between fields

Modified:
    logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/FormattedMessage.java

Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/FormattedMessage.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/FormattedMessage.java?rev=1517728&r1=1517727&r2=1517728&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/FormattedMessage.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/FormattedMessage.java
Mon Aug 26 23:28:48 2013
@@ -24,23 +24,15 @@ import java.text.MessageFormat;
 import java.util.Arrays;
 import java.util.regex.Pattern;
 
-import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.status.StatusLogger;
-
 /**
  * Handles messages that contain a format String. Dynamically determines if the format conforms
to
  * MessageFormat or String.format and if not then uses ParameterizedMessage to format.
  */
 public class FormattedMessage implements Message {
 
-    private static final Logger LOGGER = StatusLogger.getLogger();
-
     private static final long serialVersionUID = -665975803997290697L;
-
     private static final int HASHVAL = 31;
-
     private static final String FORMAT_SPECIFIER = "%(\\d+\\$)?([-#+ 0,(\\<]*)?(\\d+)?(\\.\\d+)?([tT])?([a-zA-Z%])";
-
     private static final Pattern MSG_PATTERN = Pattern.compile(FORMAT_SPECIFIER);
 
     private String messagePattern;
@@ -48,7 +40,6 @@ public class FormattedMessage implements
     private String[] stringArgs;
     private transient String formattedMessage;
     private final Throwable throwable;
-
     private Message message;
 
     public FormattedMessage(final String messagePattern, final Object[] arguments, final
Throwable throwable) {



Mime
View raw message