incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r1431203 - /sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/request/RequestHistoryConsolePlugin.java
Date Thu, 10 Jan 2013 08:22:16 GMT
Author: fmeschbe
Date: Thu Jan 10 08:22:16 2013
New Revision: 1431203

URL: http://svn.apache.org/viewvc?rev=1431203&view=rev
Log:
SLING-2699 Removed the '#' sign from the format to prevent an exception on the String argument
not supporting the # format on Java 7 and up

Modified:
    sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/request/RequestHistoryConsolePlugin.java

Modified: sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/request/RequestHistoryConsolePlugin.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/request/RequestHistoryConsolePlugin.java?rev=1431203&r1=1431202&r2=1431203&view=diff
==============================================================================
--- sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/request/RequestHistoryConsolePlugin.java
(original)
+++ sling/trunk/bundles/engine/src/main/java/org/apache/sling/engine/impl/request/RequestHistoryConsolePlugin.java
Thu Jan 10 08:22:16 2013
@@ -105,7 +105,7 @@ public class RequestHistoryConsolePlugin
     public static final class Plugin extends HttpServlet {
 
         private final RequestInfoMap requests;
-        
+
         private final List<Pattern> storePatterns;
 
         Plugin(int maxRequests, List<Pattern> storePatterns) {
@@ -165,7 +165,7 @@ public class RequestHistoryConsolePlugin
                             currentRequestIndex);
                         final StringBuilder sb = new StringBuilder();
                         sb.append("<span style='white-space: pre; text-align:right; font-size:80%'>");
-                        sb.append(String.format("%1$#8s", key));
+                        sb.append(String.format("%1$8s", key));
                         sb.append("</span> ");
                         sb.append("<a href='" + LABEL + "?index=" + key + "'>");
                         if (isCurrent) {
@@ -248,7 +248,7 @@ public class RequestHistoryConsolePlugin
                 pw.println("<tr>");
                 pw.printf(
                     "<th class='ui-widget-header'>Request %s (%s %s) by %s - RequestProgressTracker
Info</th>%n",
-                    key, ResponseUtil.escapeXml(info.getMethod()), 
+                    key, ResponseUtil.escapeXml(info.getMethod()),
                     ResponseUtil.escapeXml(info.getPathInfo()), ResponseUtil.escapeXml(info.getUser()));
                 pw.println("</tr>");
                 pw.println("</thead>");



Mime
View raw message