logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1418441 - /logging/log4j/log4j2/trunk/api/src/test/java/org/apache/logging/log4j/message/StringFormattedMessageTest.java
Date Fri, 07 Dec 2012 19:00:23 GMT
Author: ggregory
Date: Fri Dec  7 19:00:22 2012
New Revision: 1418441

URL: http://svn.apache.org/viewvc?rev=1418441&view=rev
Log:
Fix compiler warning.

Modified:
    logging/log4j/log4j2/trunk/api/src/test/java/org/apache/logging/log4j/message/StringFormattedMessageTest.java

Modified: logging/log4j/log4j2/trunk/api/src/test/java/org/apache/logging/log4j/message/StringFormattedMessageTest.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/api/src/test/java/org/apache/logging/log4j/message/StringFormattedMessageTest.java?rev=1418441&r1=1418440&r2=1418441&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/api/src/test/java/org/apache/logging/log4j/message/StringFormattedMessageTest.java
(original)
+++ logging/log4j/log4j2/trunk/api/src/test/java/org/apache/logging/log4j/message/StringFormattedMessageTest.java
Fri Dec  7 19:00:22 2012
@@ -48,7 +48,7 @@ public class StringFormattedMessageTest 
     @Test
     public void testNoArgs() {
         String testMsg = "Test message %1s";
-        StringFormattedMessage msg = new StringFormattedMessage(testMsg, null);
+        StringFormattedMessage msg = new StringFormattedMessage(testMsg, (Object[]) null);
         String result = msg.getFormattedMessage();
         String expected = "Test message null";
         assertEquals(expected, result);



Mime
View raw message