logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1395141 - /logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/message/ParameterizedMessage.java
Date Sat, 06 Oct 2012 18:16:43 GMT
Author: ggregory
Date: Sat Oct  6 18:16:43 2012
New Revision: 1395141

URL: http://svn.apache.org/viewvc?rev=1395141&view=rev
Log:
Use same guard pattern as the other constructor.

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

Modified: logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/message/ParameterizedMessage.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/message/ParameterizedMessage.java?rev=1395141&r1=1395140&r2=1395141&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/message/ParameterizedMessage.java
(original)
+++ logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/message/ParameterizedMessage.java
Sat Oct  6 18:16:43 2012
@@ -110,10 +110,9 @@ public class ParameterizedMessage implem
      */
     public ParameterizedMessage(String messagePattern, Object[] arguments) {
         this.messagePattern = messagePattern;
-        if (arguments == null) {
-            return;
+        if (arguments != null) {
+            parseArguments(arguments);
         }
-        parseArguments(arguments);
     }
 
     /**



Mime
View raw message