roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r534895 - /roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java
Date Thu, 03 May 2007 14:51:15 GMT
Author: snoopdave
Date: Thu May  3 07:51:14 2007
New Revision: 534895

URL: http://svn.apache.org/viewvc?view=rev&rev=534895
Log:
Fixing compile warning

Modified:
    roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java

Modified: roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java
URL: http://svn.apache.org/viewvc/roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java?view=diff&rev=534895&r1=534894&r2=534895
==============================================================================
--- roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java (original)
+++ roller/trunk/src/org/apache/roller/ui/rendering/servlets/CommentServlet.java Thu May 
3 07:51:14 2007
@@ -16,7 +16,7 @@
  * directory of this distribution.
  */
 
-package org.apache.roller.ui.rendering.servlets;
+package org.apache.roller.ui.rendering.servlets;  
 
 import java.io.IOException;
 import java.sql.Timestamp;
@@ -500,7 +500,7 @@
             for (Iterator it = messages.getMessages(); it.hasNext();) {
                 RollerMessage rollerMessage = (RollerMessage)it.next();
                 ownermsg.append((escapeHtml) ? "" : "<li>");
-                ownermsg.append(MessageFormat.format(resources.getString(rollerMessage.getKey()),
rollerMessage.getArgs()) );
+                ownermsg.append(MessageFormat.format(resources.getString(rollerMessage.getKey()),
(Object[])rollerMessage.getArgs()) );
                 ownermsg.append((escapeHtml) ? "\n\n" : "</li>");
             }
             if (messages.getMessageCount() > 0) {
@@ -517,7 +517,7 @@
             for (Iterator it = messages.getErrors(); it.hasNext();) {
                 RollerMessage rollerMessage = (RollerMessage)it.next();
                 ownermsg.append((escapeHtml) ? "" : "<li>");
-                ownermsg.append(MessageFormat.format(resources.getString(rollerMessage.getKey()),
rollerMessage.getArgs()) );
+                ownermsg.append(MessageFormat.format(resources.getString(rollerMessage.getKey()),
(Object[])rollerMessage.getArgs()) );
                 ownermsg.append((escapeHtml) ? "\n\n" : "</li>");
             }
             if (messages.getErrorCount() > 0) {



Mime
View raw message