logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1490130 - /logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/message/ParameterizedMessage.java
Date Thu, 06 Jun 2013 04:33:50 GMT
Author: ggregory
Date: Thu Jun  6 04:33:49 2013
New Revision: 1490130

URL: http://svn.apache.org/r1490130
Log:
Javadoc.

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=1490130&r1=1490129&r2=1490130&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
Thu Jun  6 04:33:49 2013
@@ -75,7 +75,7 @@ public class ParameterizedMessage implem
     private transient Throwable throwable;
 
     /**
-     * Create the parameterizedMessage.
+     * Creates a parameterized message.
      * @param messagePattern The message "format" string. This will be a String containing
"{}" placeholders
      * where parameters should be substituted.
      * @param stringArgs The arguments for substitution.
@@ -87,10 +87,17 @@ public class ParameterizedMessage implem
         this.throwable = throwable;
     }
 
-    public ParameterizedMessage(final String messagePattern, final Object[] arguments, final
Throwable throwable) {
+    /**
+     * Creates a parameterized message.
+     * @param messagePattern The message "format" string. This will be a String containing
"{}" placeholders
+     * where parameters should be substituted.
+     * @param objectArgs The arguments for substitution.
+     * @param throwable A Throwable.
+     */
+    public ParameterizedMessage(final String messagePattern, final Object[] objectArgs, final
Throwable throwable) {
         this.messagePattern = messagePattern;
         this.throwable = throwable;
-        this.stringArgs = parseArguments(arguments);
+        this.stringArgs = parseArguments(objectArgs);
     }
 
     /**



Mime
View raw message