activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r550473 - in /activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web: MessageServlet.java PortfolioPublishServlet.java
Date Mon, 25 Jun 2007 12:46:27 GMT
Author: rajdavies
Date: Mon Jun 25 05:46:26 2007
New Revision: 550473

URL: http://svn.apache.org/viewvc?view=rev&rev=550473
Log:
apply patch http://issues.apache.org/activemq/browse/AMQ-1293

Modified:
    activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java
    activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/PortfolioPublishServlet.java

Modified: activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java?view=diff&rev=550473&r1=550472&r2=550473
==============================================================================
--- activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java
(original)
+++ activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/MessageServlet.java
Mon Jun 25 05:46:26 2007
@@ -402,7 +402,7 @@
     /*
      * Listen for available messages and wakeup any continuations.
      */
-    private class Listener implements MessageAvailableListener {
+    private static class Listener implements MessageAvailableListener {
         MessageConsumer consumer;
         Continuation continuation;
         List queue = new LinkedList();

Modified: activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/PortfolioPublishServlet.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/PortfolioPublishServlet.java?view=diff&rev=550473&r1=550472&r2=550473
==============================================================================
--- activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/PortfolioPublishServlet.java
(original)
+++ activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/PortfolioPublishServlet.java
Mon Jun 25 05:46:26 2007
@@ -56,11 +56,11 @@
         else {
             Integer total=(Integer)request.getSession(true).getAttribute("total");
             if (total==null)
-                total=new Integer(0);
+                total=Integer.valueOf(0);
             
             
             int count = getNumberOfMessages(request);
-            total=new Integer(total.intValue()+count);
+            total=Integer.valueOf(total.intValue()+count);
             request.getSession().setAttribute("total",total);
             
             try {



Mime
View raw message