[jboss-svn-commits] JBL Code SVN: r23360 - labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/failure.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Oct 8 02:57:30 EDT 2008


Author: beve
Date: 2008-10-08 02:57:30 -0400 (Wed, 08 Oct 2008)
New Revision: 23360

Modified:
   labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/failure/MockDeadLetterService.java
Log:
checkstyle cleanup


Modified: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/failure/MockDeadLetterService.java
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/failure/MockDeadLetterService.java	2008-10-08 06:53:22 UTC (rev 23359)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/failure/MockDeadLetterService.java	2008-10-08 06:57:30 UTC (rev 23360)
@@ -58,16 +58,16 @@
      */
     public final Message process(final Message message) throws ServiceException
     {
-        if(throwException instanceof RuntimeException)
+        if (throwException instanceof RuntimeException)
         {
             throw (RuntimeException) throwException;
         }
-        else if(throwException instanceof ServiceException)
+        else if (throwException instanceof ServiceException)
         {
             throw (ServiceException) throwException;
         }
 
-        if(!expectingMessages)
+        if (!expectingMessages)
         {
             throw new RuntimeException("No expecting Dead Letter message deliveries. Call setExpectingMessages(true) to turn off this error.");
         }
@@ -81,6 +81,7 @@
      *
      * @throws SchedulingException Exception processing schedule event.
      */
+    @Override
     public final void onSchedule() throws SchedulingException
     {
         // Redliver the messages in the queue...
@@ -110,13 +111,13 @@
      * Set the exception to be thrown from the process method.
      * @param throwException The exception to be thrown.
      */
-    public void setThrowException(Exception throwException)
+    public final void setThrowException(final Exception throwException)
     {
-        if(throwException instanceof RuntimeException)
+        if (throwException instanceof RuntimeException)
         {
             // Lovely...
         }
-        else if(throwException instanceof ServiceException)
+        else if (throwException instanceof ServiceException)
         {
             // Lovely...
         }




More information about the jboss-svn-commits mailing list