You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by tv...@apache.org on 2014/02/19 16:48:09 UTC

svn commit: r1569795 [25/35] - in /tomee/tomee/trunk/container/openejb-core/src/main: config/pmd/ java/javax/xml/ws/ java/javax/xml/ws/wsaddressing/ java/org/apache/openejb/ java/org/apache/openejb/assembler/ java/org/apache/openejb/assembler/classic/ ...

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/EjbTimerServiceImpl.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/EjbTimerServiceImpl.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/EjbTimerServiceImpl.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/EjbTimerServiceImpl.java Wed Feb 19 15:47:58 2014
@@ -134,7 +134,7 @@ public class EjbTimerServiceImpl impleme
             boolean valid;
             try {
                 valid = !scheduler.isShutdown();
-            } catch (Exception ignored) {
+            } catch (final Exception ignored) {
                 valid = false;
             }
             if (valid) {
@@ -193,7 +193,7 @@ public class EjbTimerServiceImpl impleme
                                                     .requestRecovery(false)
                                                     .build();
                     thisScheduler.addJob(job, true);
-                } catch (SchedulerException e) {
+                } catch (final SchedulerException e) {
                     throw new OpenEJBRuntimeException("Fail to initialize the default scheduler", e);
                 }
 
@@ -343,7 +343,7 @@ public class EjbTimerServiceImpl impleme
         final Scheduler ds = SystemInstance.get().getComponent(Scheduler.class);
         try { // == is the faster way to test, we rely on name (key in quartz registry) only for serialization
             defaultScheduler = ds == scheduler || scheduler.getSchedulerName().equals(ds.getSchedulerName());
-        } catch (Exception e) {
+        } catch (final Exception e) {
             // no-op: default should be fine
         }
 
@@ -364,7 +364,7 @@ public class EjbTimerServiceImpl impleme
 
                 try {
                     s.pauseAll();
-                } catch (SchedulerException e) {
+                } catch (final SchedulerException e) {
                     // no-op
                 }
 
@@ -384,7 +384,7 @@ public class EjbTimerServiceImpl impleme
                 String n = "Unknown";
                 try {
                     n = s.getSchedulerName();
-                } catch (SchedulerException e) {
+                } catch (final SchedulerException e) {
                     log.warning("EjbTimerService scheduler has no name");
                 }
 
@@ -405,7 +405,7 @@ public class EjbTimerServiceImpl impleme
                             //Shutdown, but give running jobs a chance to complete.
                             //User scheduled jobs should really implement InterruptableJob
                             s.shutdown(true);
-                        } catch (Throwable e) {
+                        } catch (final Throwable e) {
                             ex.set(e);
                             shutdownWait.countDown();
                         }
@@ -418,7 +418,7 @@ public class EjbTimerServiceImpl impleme
                 boolean stopped = false;
                 try {
                     stopped = shutdownWait.await(timeout, TimeUnit.MILLISECONDS);
-                } catch (InterruptedException e) {
+                } catch (final InterruptedException e) {
                     //Ignore
                 }
 
@@ -433,7 +433,7 @@ public class EjbTimerServiceImpl impleme
                                     //Force a shutdown without waiting for jobs to complete.
                                     s.shutdown(false);
                                     log.warning("Forced " + name + " shutdown - Jobs may be incomplete");
-                                } catch (Throwable e) {
+                                } catch (final Throwable e) {
                                     ex.set(e);
                                 }
                             }
@@ -445,11 +445,11 @@ public class EjbTimerServiceImpl impleme
                         try {
                             //Give the forced shutdown a chance to complete
                             stopThread.join(timeout);
-                        } catch (InterruptedException e) {
+                        } catch (final InterruptedException e) {
                             //Ignore
                         }
                     }
-                } catch (Throwable e) {
+                } catch (final Throwable e) {
                     ex.set(e);
                 }
 
@@ -457,7 +457,7 @@ public class EjbTimerServiceImpl impleme
                     throw new OpenEJBRuntimeException("Unable to shutdown " + name + " scheduler", ex.get());
                 }
             }
-        } catch (SchedulerException e) {
+        } catch (final SchedulerException e) {
             //Ignore - This can only be a shutdown issue that we have no control over.
         }
     }
@@ -506,7 +506,7 @@ public class EjbTimerServiceImpl impleme
                 if (!scheduler.isShutdown()) {
                     log.warning("Failed to schedule: " + timerData.getInfo());
                 }
-            } catch (SchedulerException e) {
+            } catch (final SchedulerException e) {
                 //Ignore
             }
         }
@@ -533,7 +533,7 @@ public class EjbTimerServiceImpl impleme
                 scheduler.unscheduleJob(triggerKey);
                 scheduler.scheduleJob(trigger);
             }
-        } catch (Exception e) {
+        } catch (final Exception e) {
             //TODO Any other actions we could do ?
             log.error("Could not schedule timer " + timerData, e);
         }
@@ -557,7 +557,7 @@ public class EjbTimerServiceImpl impleme
     public void addTimerData(final TimerData timerData) {
         try {
             timerStore.addTimerData(timerData);
-        } catch (Exception e) {
+        } catch (final Exception e) {
             log.warning("Could not add timer of type " + timerData.getType().name() + " due to " + e.getMessage());
         }
     }
@@ -600,7 +600,7 @@ public class EjbTimerServiceImpl impleme
             final TimerData timerData = timerStore.createSingleActionTimer(this, (String) deployment.getDeploymentID(), primaryKey, timeoutMethod, expiration, timerConfig);
             initializeNewTimer(timerData);
             return timerData.getTimer();
-        } catch (TimerStoreException e) {
+        } catch (final TimerStoreException e) {
             throw new EJBException(e);
         }
     }
@@ -630,7 +630,7 @@ public class EjbTimerServiceImpl impleme
                                                                        timerConfig);
             initializeNewTimer(timerData);
             return timerData.getTimer();
-        } catch (TimerStoreException e) {
+        } catch (final TimerStoreException e) {
             throw new EJBException(e);
         }
     }
@@ -652,7 +652,7 @@ public class EjbTimerServiceImpl impleme
             final TimerData timerData = timerStore.createSingleActionTimer(this, (String) deployment.getDeploymentID(), primaryKey, timeoutMethod, expiration, timerConfig);
             initializeNewTimer(timerData);
             return timerData.getTimer();
-        } catch (TimerStoreException e) {
+        } catch (final TimerStoreException e) {
             throw new EJBException(e);
         }
     }
@@ -684,7 +684,7 @@ public class EjbTimerServiceImpl impleme
                                                                        timerConfig);
             initializeNewTimer(timerData);
             return timerData.getTimer();
-        } catch (TimerStoreException e) {
+        } catch (final TimerStoreException e) {
             throw new EJBException(e);
         }
     }
@@ -706,7 +706,7 @@ public class EjbTimerServiceImpl impleme
                                                                        false);
             initializeNewTimer(timerData);
             return timerData.getTimer();
-        } catch (TimerStoreException e) {
+        } catch (final TimerStoreException e) {
             throw new EJBException(e);
         }
     }
@@ -754,7 +754,7 @@ public class EjbTimerServiceImpl impleme
                 try {
                     timerStore.addTimerData(timerData);
                     timer = timerData.getTimer(); // TODO: replace memoryjobstore by the db one?
-                } catch (TimerStoreException e) {
+                } catch (final TimerStoreException e) {
                     // shouldn't occur
                 }
                 // return;
@@ -765,7 +765,7 @@ public class EjbTimerServiceImpl impleme
                 if (transacted) {
                     try {
                         transactionManager.begin();
-                    } catch (Exception e) {
+                    } catch (final Exception e) {
                         log.warning("Exception occured while starting container transaction", e);
                         return;
                     }
@@ -789,22 +789,22 @@ public class EjbTimerServiceImpl impleme
                                      ejbTimeout,
                                      new Object[]{timer},
                                      timerData.getPrimaryKey());
-                } catch (RuntimeException e) {
+                } catch (final RuntimeException e) {
                     retry = true;
                     // exception from a timer does not necessairly mean failure
                     log.warning("RuntimeException from ejbTimeout on " + deployment.getDeploymentID(), e);
                     try {
                         transactionManager.setRollbackOnly();
-                    } catch (SystemException e1) {
+                    } catch (final SystemException e1) {
                         log.warning("Exception occured while setting RollbackOnly for container transaction", e1);
                     }
-                } catch (OpenEJBException e) {
+                } catch (final OpenEJBException e) {
                     retry = true;
                     log.warning("Exception from ejbTimeout on " + deployment.getDeploymentID(), e);
                     if (transacted) {
                         try {
                             transactionManager.setRollbackOnly();
-                        } catch (SystemException e1) {
+                        } catch (final SystemException e1) {
                             log.warning("Exception occured while setting RollbackOnly for container transaction", e1);
                         }
                     }
@@ -821,16 +821,16 @@ public class EjbTimerServiceImpl impleme
                             // tx was marked rollback, so roll it back and retry.
                             transactionManager.rollback();
                         }
-                    } catch (Exception e) {
+                    } catch (final Exception e) {
                         log.warning("Exception occured while completing container transaction", e);
                     }
                 }
             }
             log.warning("Failed to execute ejbTimeout on " + timerData.getDeploymentId() + " successfully within " + retryAttempts + " attempts");
-        } catch (RuntimeException e) {
+        } catch (final RuntimeException e) {
             log.warning("RuntimeException occured while calling ejbTimeout", e);
             throw e;
-        } catch (Error e) {
+        } catch (final Error e) {
             log.warning("Error occured while calling ejbTimeout", e);
             throw e;
         } finally {

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/IntervalTimerData.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/IntervalTimerData.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/IntervalTimerData.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/IntervalTimerData.java Wed Feb 19 15:47:58 2014
@@ -36,7 +36,7 @@ public class IntervalTimerData extends T
 
     private final Date initialExpiration;
 
-    public IntervalTimerData(long id, EjbTimerServiceImpl timerService, String deploymentId, Object primaryKey, Method timeoutMethod, TimerConfig timerConfig, Date initialExpiration, long intervalDuration) {
+    public IntervalTimerData(final long id, final EjbTimerServiceImpl timerService, final String deploymentId, final Object primaryKey, final Method timeoutMethod, final TimerConfig timerConfig, final Date initialExpiration, final long intervalDuration) {
         super(id, timerService, deploymentId, primaryKey, timeoutMethod, timerConfig);
         this.initialExpiration = initialExpiration;
         this.intervalDuration = intervalDuration;
@@ -57,8 +57,8 @@ public class IntervalTimerData extends T
 
     @Override
     public AbstractTrigger<?> initializeTrigger() {
-        SimpleTriggerImpl simpleTrigger = new SimpleTriggerImpl();
-        Date startTime = new Date(initialExpiration.getTime());
+        final SimpleTriggerImpl simpleTrigger = new SimpleTriggerImpl();
+        final Date startTime = new Date(initialExpiration.getTime());
         simpleTrigger.setStartTime(startTime);
         simpleTrigger.setRepeatInterval(intervalDuration);
         simpleTrigger.setRepeatCount(SimpleTrigger.REPEAT_INDEFINITELY);

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/MemoryTimerStore.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/MemoryTimerStore.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/MemoryTimerStore.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/MemoryTimerStore.java Wed Feb 19 15:47:58 2014
@@ -62,7 +62,7 @@ public class MemoryTimerStore implements
         try {
             final TimerDataView tasks = getTasks();
             return tasks.getTasks().get(timerId);
-        } catch (TimerStoreException e) {
+        } catch (final TimerStoreException e) {
             return null;
         }
     }
@@ -72,7 +72,7 @@ public class MemoryTimerStore implements
         try {
             final TimerDataView tasks = getTasks();
             return new ArrayList<TimerData>(tasks.getTasks().values());
-        } catch (TimerStoreException e) {
+        } catch (final TimerStoreException e) {
             return Collections.emptySet();
         }
     }
@@ -125,7 +125,7 @@ public class MemoryTimerStore implements
     public void removeTimer(final long id) {
         try {
             getTasks().removeTimerData(id);
-        } catch (TimerStoreException e) {
+        } catch (final TimerStoreException e) {
             log.warning("Unable to remove timer data from memory store", e);
         }
     }
@@ -142,7 +142,7 @@ public class MemoryTimerStore implements
             if (transaction != null) {
                 status = transaction.getStatus();
             }
-        } catch (SystemException e) {
+        } catch (final SystemException e) {
             // no-op
         }
 
@@ -209,9 +209,9 @@ public class MemoryTimerStore implements
             try {
                 transaction.registerSynchronization(this);
                 tansactionReference = new WeakReference<Transaction>(transaction);
-            } catch (RollbackException e) {
+            } catch (final RollbackException e) {
                 throw new TimerStoreException("Transaction has been rolled back");
-            } catch (SystemException e) {
+            } catch (final SystemException e) {
                 throw new TimerStoreException("Error registering transaction synchronization callback");
             }
         }

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/MethodSchedule.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/MethodSchedule.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/MethodSchedule.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/MethodSchedule.java Wed Feb 19 15:47:58 2014
@@ -30,7 +30,7 @@ public class MethodSchedule {
 
     private final List<ScheduleData> schedules;
 
-    public MethodSchedule(Method method, List<ScheduleData> schedules) {
+    public MethodSchedule(final Method method, final List<ScheduleData> schedules) {
         this.method = method;
         this.schedules = schedules;
     }

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/NullEjbTimerServiceImpl.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/NullEjbTimerServiceImpl.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/NullEjbTimerServiceImpl.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/NullEjbTimerServiceImpl.java Wed Feb 19 15:47:58 2014
@@ -36,37 +36,37 @@ public class NullEjbTimerServiceImpl imp
     
     private static final Logger log = Logger.getInstance(LogCategory.TIMER, NullEjbTimerServiceImpl.class);
 
-    public Timer createTimer(Object primaryKey, Method timeoutMethod, ScheduleExpression schedule, TimerConfig timerConfig) {
+    public Timer createTimer(final Object primaryKey, final Method timeoutMethod, final ScheduleExpression schedule, final TimerConfig timerConfig) {
         log.error("Null ! TimerService operation not supported for a bean without an ejbTimeout method or auto-started task");
         return null;
     }
 
-    public Timer createTimer(Object primaryKey, Method timeoutMethod, Date initialExpiration, long intervalDuration, TimerConfig timerConfig) {
+    public Timer createTimer(final Object primaryKey, final Method timeoutMethod, final Date initialExpiration, final long intervalDuration, final TimerConfig timerConfig) {
         log.error("Null ! TimerService operation not supported for a bean without an ejbTimeout method  or auto-started task");
         return null;   
     }
 
-    public Timer createTimer(Object primaryKey, Method timeoutMethod, Date expiration, TimerConfig timerConfig) {
+    public Timer createTimer(final Object primaryKey, final Method timeoutMethod, final Date expiration, final TimerConfig timerConfig) {
         log.error("Null ! TimerService operation not supported for a bean without an ejbTimeout method  or auto-started task");
         return null;    
     }
 
-    public Timer createTimer(Object primaryKey, Method timeoutMethod, long initialDuration, long intervalDuration, TimerConfig timerConfig) {
+    public Timer createTimer(final Object primaryKey, final Method timeoutMethod, final long initialDuration, final long intervalDuration, final TimerConfig timerConfig) {
         log.error("Null ! TimerService operation not supported for a bean without an ejbTimeout method  or auto-started task");
         return null;    
     }
 
-    public Timer createTimer(Object primaryKey, Method timeoutMethod, long duration, TimerConfig timerConfig) {
+    public Timer createTimer(final Object primaryKey, final Method timeoutMethod, final long duration, final TimerConfig timerConfig) {
         log.error("Null ! TimerService operation not supported for a bean without an ejbTimeout method  or auto-started task");
         return null;    
     }
 
-    public Timer getTimer(long id) {
+    public Timer getTimer(final long id) {
         log.error("Null ! TimerService operation not supported for a bean without an ejbTimeout method  or auto-started task");
         return null;   
     }
 
-    public Collection<Timer> getTimers(Object primaryKey) {
+    public Collection<Timer> getTimers(final Object primaryKey) {
         log.error("Null ! TimerService operation not supported for a bean without an ejbTimeout method  or auto-started task");
         return null;    
     }

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/ScheduleData.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/ScheduleData.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/ScheduleData.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/ScheduleData.java Wed Feb 19 15:47:58 2014
@@ -33,7 +33,7 @@ public class ScheduleData {
     private final ScheduleExpression expression;
     private final TimerConfig config;
 
-    public ScheduleData(TimerConfig config, ScheduleExpression expression) {
+    public ScheduleData(final TimerConfig config, final ScheduleExpression expression) {
         this.config = config;
         this.expression = expression;
     }

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/SingleActionTimerData.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/SingleActionTimerData.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/SingleActionTimerData.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/SingleActionTimerData.java Wed Feb 19 15:47:58 2014
@@ -33,7 +33,7 @@ public class SingleActionTimerData exten
 
     private final Date expiration;
 
-    public SingleActionTimerData(long id, EjbTimerServiceImpl timerService, String deploymentId, Object primaryKey, Method timeoutMethod, TimerConfig timerConfig, Date expiration) {
+    public SingleActionTimerData(final long id, final EjbTimerServiceImpl timerService, final String deploymentId, final Object primaryKey, final Method timeoutMethod, final TimerConfig timerConfig, final Date expiration) {
         super(id, timerService, deploymentId, primaryKey, timeoutMethod, timerConfig);
         this.expiration = expiration;
     }

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerData.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerData.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerData.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerData.java Wed Feb 19 15:47:58 2014
@@ -150,14 +150,14 @@ public abstract class TimerData implemen
             timerService = (EjbTimerServiceImpl) in.readObject();
             info = in.readObject();
             trigger = AbstractTrigger.class.cast(in.readObject());
-        } catch (ClassNotFoundException e) {
+        } catch (final ClassNotFoundException e) {
             throw new IOException(e);
         }
 
         final String mtd = in.readUTF();
         final BeanContext beanContext = SystemInstance.get().getComponent(ContainerSystem.class).getBeanContext(deploymentId);
         scheduler = timerService.getScheduler();
-        for (Iterator<Map.Entry<Method, MethodContext>> it = beanContext.iteratorMethodContext(); it.hasNext(); ) {
+        for (final Iterator<Map.Entry<Method, MethodContext>> it = beanContext.iteratorMethodContext(); it.hasNext(); ) {
             final MethodContext methodContext = it.next().getValue();
             /* this doesn't work in all cases
             if (methodContext.getSchedules().isEmpty()) {
@@ -185,7 +185,7 @@ public abstract class TimerData implemen
                         s.pauseTrigger(trigger.getKey());
                     }
                 }
-            } catch (SchedulerException e) {
+            } catch (final SchedulerException e) {
                 throw new EJBException("fail to cancel the timer", e);
             }
         }
@@ -226,7 +226,7 @@ public abstract class TimerData implemen
         newTimer = true;
         try {
             registerTimerDataSynchronization();
-        } catch (TimerStoreException e) {
+        } catch (final TimerStoreException e) {
             throw new EJBException("Failed to register new timer data synchronization", e);
         }
     }
@@ -248,14 +248,14 @@ public abstract class TimerData implemen
                 if (!s.isShutdown()) {
                     s.unscheduleJob(trigger.getKey());
                 }
-            } catch (SchedulerException e) {
+            } catch (final SchedulerException e) {
                 throw new EJBException("fail to cancel the timer", e);
             }
         }
         cancelled = true;
         try {
             registerTimerDataSynchronization();
-        } catch (TimerStoreException e) {
+        } catch (final TimerStoreException e) {
             throw new EJBException("Failed to register timer data synchronization on cancel", e);
         }
     }
@@ -302,7 +302,7 @@ public abstract class TimerData implemen
                 synchronizationRegistered = true;
                 return;
             }
-        } catch (Exception e) {
+        } catch (final Exception e) {
             log.warning("Unable to register timer data transaction synchronization", e);
         }
 
@@ -325,7 +325,7 @@ public abstract class TimerData implemen
             synchronizationRegistered = false;
             try {
                 transactionComplete(status == Status.STATUS_COMMITTED);
-            } catch (TimerStoreException e) {
+            } catch (final TimerStoreException e) {
                 throw new EJBException("Failed on afterCompletion", e);
             }
         }
@@ -343,7 +343,7 @@ public abstract class TimerData implemen
                 if (scheduler.checkExists(key)) {
                     return scheduler.getTrigger(key);
                 }
-            } catch (SchedulerException e) {
+            } catch (final SchedulerException e) {
                 return null;
             }
         }
@@ -356,7 +356,7 @@ public abstract class TimerData implemen
         try {
             // give the trigger 1 ms to init itself to set correct nextTimeout value.
             Thread.sleep(1);
-        } catch (InterruptedException e) {
+        } catch (final InterruptedException e) {
             log.warning("Interrupted exception when waiting 1ms for the trigger to init", e);
         }
 

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerHandleImpl.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerHandleImpl.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerHandleImpl.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerHandleImpl.java Wed Feb 19 15:47:58 2014
@@ -30,25 +30,25 @@ public class TimerHandleImpl implements 
     private final long id;
     private final String deploymentId;
 
-    public TimerHandleImpl(long id, String deploymentId) {
+    public TimerHandleImpl(final long id, final String deploymentId) {
         this.id = id;
         this.deploymentId = deploymentId;
     }
 
     public Timer getTimer() {
-        ContainerSystem containerSystem = SystemInstance.get().getComponent(ContainerSystem.class);
+        final ContainerSystem containerSystem = SystemInstance.get().getComponent(ContainerSystem.class);
         if (containerSystem == null) {
             throw new NoSuchObjectLocalException("OpenEJb container system is not running");
         }
-        BeanContext beanContext = containerSystem.getBeanContext(deploymentId);
+        final BeanContext beanContext = containerSystem.getBeanContext(deploymentId);
         if (beanContext == null) {
             throw new NoSuchObjectLocalException("Deployment info not found " + deploymentId);
         }
-        EjbTimerService timerService = beanContext.getEjbTimerService();
+        final EjbTimerService timerService = beanContext.getEjbTimerService();
         if (timerService == null) {
             throw new NoSuchObjectLocalException("Deployment no longer supports ejbTimout " + deploymentId + ". Has this ejb been redeployed?");
         }
-        Timer timer = timerService.getTimer(id);
+        final Timer timer = timerService.getTimer(id);
         if (timer == null) {
             throw new NoSuchObjectLocalException("Timer not found for ejb " + deploymentId);
         }

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerImpl.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerImpl.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerImpl.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerImpl.java Wed Feb 19 15:47:58 2014
@@ -33,7 +33,7 @@ import java.util.Date;
 public class TimerImpl implements Timer, Serializable {
     private final TimerData timerData;
 
-    public TimerImpl(TimerData timerData) {
+    public TimerImpl(final TimerData timerData) {
         this.timerData = timerData;
     }
 
@@ -44,7 +44,7 @@ public class TimerImpl implements Timer,
 
     public long getTimeRemaining() throws IllegalStateException, NoSuchObjectLocalException {
         checkState();
-        Date nextTimeout = timerData.getNextTimeout();
+        final Date nextTimeout = timerData.getNextTimeout();
         if (nextTimeout == null) throw new NoMoreTimeoutsException("The timer has no future timeouts");
         return timerData.getTimeRemaining();
     }
@@ -52,7 +52,7 @@ public class TimerImpl implements Timer,
     public Date getNextTimeout() throws IllegalStateException, NoSuchObjectLocalException {
         checkState();
         
-        Date nextTimeout = timerData.getNextTimeout();
+        final Date nextTimeout = timerData.getNextTimeout();
         if (nextTimeout == null) throw new NoMoreTimeoutsException("The timer has no future timeouts");
         return timerData.getNextTimeout();
     }

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerServiceImpl.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerServiceImpl.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerServiceImpl.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerServiceImpl.java Wed Feb 19 15:47:58 2014
@@ -31,25 +31,25 @@ public class TimerServiceImpl implements
     private final Object primaryKey;
     private final Method ejbTimeout;
 
-    public TimerServiceImpl(EjbTimerService ejbTimerService, Object primaryKey, Method ejbTimeout) {
+    public TimerServiceImpl(final EjbTimerService ejbTimerService, final Object primaryKey, final Method ejbTimeout) {
         this.ejbTimerService = ejbTimerService;
         this.primaryKey = primaryKey;
         this.ejbTimeout = ejbTimeout;
     }
 
-    public Timer createTimer(Date initialExpiration, long intervalDuration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createTimer(final Date initialExpiration, final long intervalDuration, final Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException {
         return ejbTimerService.createTimer(primaryKey, ejbTimeout, initialExpiration, intervalDuration, new TimerConfig(info, true));
     }
 
-    public Timer createTimer(Date expiration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createTimer(final Date expiration, final Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException {
         return ejbTimerService.createTimer(primaryKey, ejbTimeout, expiration, new TimerConfig(info, true));
     }
 
-    public Timer createTimer(long initialDuration, long intervalDuration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createTimer(final long initialDuration, final long intervalDuration, final Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException {
         return ejbTimerService.createTimer(primaryKey, ejbTimeout, initialDuration, intervalDuration, new TimerConfig(info, true));
     }
 
-    public Timer createTimer(long duration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createTimer(final long duration, final Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException {
         return ejbTimerService.createTimer(primaryKey, ejbTimeout, duration, new TimerConfig(info, true));
     }
 
@@ -57,33 +57,33 @@ public class TimerServiceImpl implements
         return ejbTimerService.getTimers(primaryKey);
     }
 
-    public Timer createSingleActionTimer(long duration, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createSingleActionTimer(final long duration, final TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
         return ejbTimerService.createTimer(primaryKey, ejbTimeout, duration, timerConfig);
     }
 
-    public Timer createSingleActionTimer(Date expiration, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createSingleActionTimer(final Date expiration, final TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
         return ejbTimerService.createTimer(primaryKey, ejbTimeout, expiration, timerConfig);
     }
 
-    public Timer createIntervalTimer(long initialDuration, long intervalDuration, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createIntervalTimer(final long initialDuration, final long intervalDuration, final TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
         return ejbTimerService.createTimer(primaryKey, ejbTimeout, initialDuration, intervalDuration, timerConfig);
     }
 
-    public Timer createIntervalTimer(Date initialExpiration, long lintervalDuration, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createIntervalTimer(final Date initialExpiration, final long lintervalDuration, final TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
         return ejbTimerService.createTimer(primaryKey, ejbTimeout, initialExpiration, lintervalDuration, timerConfig);
     }
 
-    public Timer createCalendarTimer(ScheduleExpression scheduleExpression) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createCalendarTimer(final ScheduleExpression scheduleExpression) throws IllegalArgumentException, IllegalStateException, EJBException {
         
         return ejbTimerService.createTimer(primaryKey, ejbTimeout, copy(scheduleExpression), new TimerConfig(null, true));
     }
 
-    public Timer createCalendarTimer(ScheduleExpression scheduleExpression, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createCalendarTimer(final ScheduleExpression scheduleExpression, final TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
         return ejbTimerService.createTimer(primaryKey, ejbTimeout, copy(scheduleExpression), timerConfig);
     }
     
-    private ScheduleExpression copy(ScheduleExpression scheduleExpression){
-        ScheduleExpression scheduleExpressionCopy = new ScheduleExpression();
+    private ScheduleExpression copy(final ScheduleExpression scheduleExpression){
+        final ScheduleExpression scheduleExpressionCopy = new ScheduleExpression();
         scheduleExpressionCopy.year(scheduleExpression.getYear());
         scheduleExpressionCopy.month(scheduleExpression.getMonth());
         scheduleExpressionCopy.dayOfMonth(scheduleExpression.getDayOfMonth());

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerServiceWrapper.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerServiceWrapper.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerServiceWrapper.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerServiceWrapper.java Wed Feb 19 15:47:58 2014
@@ -38,19 +38,19 @@ public class TimerServiceWrapper impleme
     
     private static final Logger log = Logger.getInstance(LogCategory.TIMER, TimerServiceWrapper.class);
 
-    public Timer createTimer(Date initialExpiration, long intervalDuration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createTimer(final Date initialExpiration, final long intervalDuration, final Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException {
         return getTimerService().createTimer(initialExpiration, intervalDuration, info);
     }
 
-    public Timer createTimer(Date expiration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createTimer(final Date expiration, final Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException {
         return getTimerService().createTimer(expiration, info);
     }
 
-    public Timer createTimer(long initialDuration, long intervalDuration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createTimer(final long initialDuration, final long intervalDuration, final Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException {
         return getTimerService().createTimer(initialDuration, intervalDuration, info);
     }
 
-    public Timer createTimer(long duration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createTimer(final long duration, final Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException {
         return getTimerService().createTimer(duration, info);
     }
 
@@ -58,27 +58,27 @@ public class TimerServiceWrapper impleme
         return getTimerService().getTimers();
     }
 
-    public Timer createSingleActionTimer(long l, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createSingleActionTimer(final long l, final TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
         return getTimerService().createSingleActionTimer(l, timerConfig);
     }
 
-    public Timer createSingleActionTimer(Date date, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createSingleActionTimer(final Date date, final TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
         return getTimerService().createSingleActionTimer(date, timerConfig);
     }
 
-    public Timer createIntervalTimer(long l, long l1, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createIntervalTimer(final long l, final long l1, final TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
         return getTimerService().createIntervalTimer(l, l1, timerConfig);
     }
 
-    public Timer createIntervalTimer(Date date, long l, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createIntervalTimer(final Date date, final long l, final TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
         return getTimerService().createIntervalTimer(date, l, timerConfig);
     }
 
-    public Timer createCalendarTimer(ScheduleExpression scheduleExpression) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createCalendarTimer(final ScheduleExpression scheduleExpression) throws IllegalArgumentException, IllegalStateException, EJBException {
         return getTimerService().createCalendarTimer(scheduleExpression);
     }
 
-    public Timer createCalendarTimer(ScheduleExpression scheduleExpression, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
+    public Timer createCalendarTimer(final ScheduleExpression scheduleExpression, final TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException {
         return getTimerService().createCalendarTimer(scheduleExpression, timerConfig);
     }
 

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerStoreException.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerStoreException.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerStoreException.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/timer/TimerStoreException.java Wed Feb 19 15:47:58 2014
@@ -24,15 +24,15 @@ public class TimerStoreException extends
         super();
     }
 
-    public TimerStoreException(String message) {
+    public TimerStoreException(final String message) {
         super(message);
     }
 
-    public TimerStoreException(String message, Throwable cause) {
+    public TimerStoreException(final String message, final Throwable cause) {
         super(message, cause);
     }
 
-    public TimerStoreException(Throwable cause) {
+    public TimerStoreException(final Throwable cause) {
         super(cause);
     }
 }

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/EjbTransactionUtil.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/EjbTransactionUtil.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/EjbTransactionUtil.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/EjbTransactionUtil.java Wed Feb 19 15:47:58 2014
@@ -88,7 +88,7 @@ public final class EjbTransactionUtil {
             try {
                 txPolicy.setRollbackOnly();
                 txPolicy.commit();
-            } catch (Exception e) {
+            } catch (final Exception e) {
                 threadContext.setDiscardInstance(true);
                 logger.error("Error rolling back transaction", e);
             }
@@ -98,7 +98,7 @@ public final class EjbTransactionUtil {
                 try {
                     threadContextTxPolicy.setRollbackOnly();
                     threadContextTxPolicy.commit();
-                } catch (Exception e) {
+                } catch (final Exception e) {
                     threadContext.setDiscardInstance(true);
                     logger.error("Error rolling back transaction", e);
                 }

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/EjbUserTransaction.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/EjbUserTransaction.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/EjbUserTransaction.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/EjbUserTransaction.java Wed Feb 19 15:47:58 2014
@@ -49,17 +49,17 @@ public class EjbUserTransaction implemen
         getUserTransaction().setRollbackOnly();
     }
 
-    public void setTransactionTimeout(int i) throws SystemException {
+    public void setTransactionTimeout(final int i) throws SystemException {
         getUserTransaction().setTransactionTimeout(i);
     }
 
     private UserTransaction getUserTransaction() throws SystemException {
         // get UserTransaction from BeanTransactionEnvironment in ThreadContext
-        ThreadContext callContext = ThreadContext.getThreadContext();
+        final ThreadContext callContext = ThreadContext.getThreadContext();
         if (callContext != null) {
-            TransactionPolicy txPolicy = callContext.getTransactionPolicy();
+            final TransactionPolicy txPolicy = callContext.getTransactionPolicy();
             if (txPolicy != null && txPolicy instanceof BeanTransactionPolicy) {
-                BeanTransactionPolicy beanTxEnv = (BeanTransactionPolicy) txPolicy;
+                final BeanTransactionPolicy beanTxEnv = (BeanTransactionPolicy) txPolicy;
                 return beanTxEnv.getUserTransaction();
             }
         }

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/JtaTransactionPolicy.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/JtaTransactionPolicy.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/JtaTransactionPolicy.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/JtaTransactionPolicy.java Wed Feb 19 15:47:58 2014
@@ -52,7 +52,7 @@ public abstract class JtaTransactionPoli
     private final List<TransactionSynchronization> synchronizations = new LinkedList<TransactionSynchronization>();
     private boolean rollbackOnly;
 
-    public JtaTransactionPolicy(TransactionType transactionType, TransactionManager transactionManager) {
+    public JtaTransactionPolicy(final TransactionType transactionType, final TransactionManager transactionManager) {
         this.transactionType = transactionType;
         this.transactionManager = transactionManager;
         synchronizationRegistry = SystemInstance.get().getComponent(TransactionSynchronizationRegistry.class);
@@ -65,26 +65,26 @@ public abstract class JtaTransactionPoli
     public abstract Transaction getCurrentTransaction();
 
     public boolean isTransactionActive() {
-        Transaction trasaction = getCurrentTransaction();
+        final Transaction trasaction = getCurrentTransaction();
         if (trasaction == null) {
             return false;
         }
 
         try {
-            int status = trasaction.getStatus();
+            final int status = trasaction.getStatus();
             return status == Status.STATUS_ACTIVE || status == Status.STATUS_MARKED_ROLLBACK;
-        } catch (javax.transaction.SystemException e) {
+        } catch (final javax.transaction.SystemException e) {
             return false;
         }
     }
 
     public boolean isRollbackOnly() {
-        Transaction trasaction = getCurrentTransaction();
+        final Transaction trasaction = getCurrentTransaction();
         if (trasaction != null) {
             try {
-                int status = trasaction.getStatus();
+                final int status = trasaction.getStatus();
                 return status == Status.STATUS_MARKED_ROLLBACK;
-            } catch (javax.transaction.SystemException e) {
+            } catch (final javax.transaction.SystemException e) {
                 return false;
             }
         } else {
@@ -97,8 +97,8 @@ public abstract class JtaTransactionPoli
     }
 
     @Override
-    public void setRollbackOnly(Throwable reason) {
-        Transaction trasaction = getCurrentTransaction();
+    public void setRollbackOnly(final Throwable reason) {
+        final Transaction trasaction = getCurrentTransaction();
         if (trasaction != null) {
             setRollbackOnly(trasaction, reason);
         } else {
@@ -106,7 +106,7 @@ public abstract class JtaTransactionPoli
         }
     }
 
-    public Object getResource(Object key) {
+    public Object getResource(final Object key) {
         if (isTransactionActive()) {
             return synchronizationRegistry.getResource(key);
         }
@@ -117,7 +117,7 @@ public abstract class JtaTransactionPoli
         return resources.get(key);
     }
 
-    public void putResource(Object key, Object value) {
+    public void putResource(final Object key, final Object value) {
         if (isTransactionActive()) {
             synchronizationRegistry.putResource(key, value);
         }
@@ -128,9 +128,9 @@ public abstract class JtaTransactionPoli
         resources.put(key, value);
     }
 
-    public Object removeResource(Object key) {
+    public Object removeResource(final Object key) {
         if (isTransactionActive()) {
-            Object value = synchronizationRegistry.getResource(key);
+            final Object value = synchronizationRegistry.getResource(key);
             synchronizationRegistry.putResource(key, null);
             return value;
         }
@@ -148,8 +148,8 @@ public abstract class JtaTransactionPoli
                     synchronization.beforeCompletion();
                 }
 
-                public void afterCompletion(int s) {
-                    TransactionSynchronization.Status status;
+                public void afterCompletion(final int s) {
+                    final TransactionSynchronization.Status status;
                     if (s == Status.STATUS_COMMITTED) {
                         status = TransactionSynchronization.Status.COMMITTED;
                     } else if (s == Status.STATUS_ROLLEDBACK) {
@@ -167,31 +167,31 @@ public abstract class JtaTransactionPoli
     }
 
     protected void fireNonTransactionalCompletion() {
-        for (TransactionSynchronization synchronization : new ArrayList<TransactionSynchronization>(synchronizations)) {
+        for (final TransactionSynchronization synchronization : new ArrayList<TransactionSynchronization>(synchronizations)) {
             try {
                 synchronization.beforeCompletion();
-            } catch (Throwable e) {
+            } catch (final Throwable e) {
                 logger.error("Exception thrown from beforeCompletion() of TransactionSynchronization " + synchronization);
             }
         }
-        TransactionSynchronization.Status status = isRollbackOnly() ? TransactionSynchronization.Status.ROLLEDBACK : TransactionSynchronization.Status.COMMITTED;
-        for (TransactionSynchronization synchronization : new ArrayList<TransactionSynchronization>(synchronizations)) {
+        final TransactionSynchronization.Status status = isRollbackOnly() ? TransactionSynchronization.Status.ROLLEDBACK : TransactionSynchronization.Status.COMMITTED;
+        for (final TransactionSynchronization synchronization : new ArrayList<TransactionSynchronization>(synchronizations)) {
             try {
                 synchronization.afterCompletion(status);
-            } catch (Exception e) {
+            } catch (final Exception e) {
                 logger.error("Exception thrown from afterCompletion(" + status + ") of TransactionSynchronization " + synchronization);
             }
         }
     }
 
-    public void enlistResource(XAResource xaResource) throws SystemException {
-        Transaction transaction = getCurrentTransaction();
+    public void enlistResource(final XAResource xaResource) throws SystemException {
+        final Transaction transaction = getCurrentTransaction();
         if (transaction != null) {
             try {
                 if (transaction.enlistResource(xaResource)) {
                     return;
                 }
-            } catch (Exception e) {
+            } catch (final Exception e) {
                 throw new SystemException("Unable to enlist xa resource in the transaction", e);
             }
         }
@@ -205,14 +205,14 @@ public abstract class JtaTransactionPoli
     protected Transaction getTransaction() throws SystemException {
         try {
             return transactionManager.getTransaction();
-        } catch (javax.transaction.SystemException e) {
+        } catch (final javax.transaction.SystemException e) {
             txLogger.error("The Transaction Manager has encountered an unexpected error condition while attempting to obtain current transaction: {0}", e.getMessage());
             throw new SystemException(e);
         }
     }
 
 
-    protected void setRollbackOnly(Transaction tx, Throwable reason) {
+    protected void setRollbackOnly(final Transaction tx, final Throwable reason) {
         try {
             if (tx == null || tx.getStatus() != Status.STATUS_ACTIVE) return;
 
@@ -237,26 +237,26 @@ public abstract class JtaTransactionPoli
             
             txLogger.debug("TX {0}: setRollbackOnly() on transaction {1}", transactionType, tx);
 
-        } catch (Exception e) {
+        } catch (final Exception e) {
             txLogger.error("Exception during setRollbackOnly()", e);
             throw new IllegalStateException("No transaction active", e);
         }
     }
 
-    private Method setRollbackOnlyMethod(Transaction tx) {
+    private Method setRollbackOnlyMethod(final Transaction tx) {
         try {
             return tx.getClass().getMethod("setRollbackOnly", Throwable.class);
-        } catch (Throwable e) {
+        } catch (final Throwable e) {
             return null;
         }
     }
 
     protected Transaction beginTransaction() throws SystemException {
-        Transaction transaction;
+        final Transaction transaction;
         try {
             transactionManager.begin();
             transaction = transactionManager.getTransaction();
-        } catch (Exception e) {
+        } catch (final Exception e) {
             txLogger.error("The Transaction Manager has encountered an unexpected error condition while attempting to begin a new transaction: {0}", e.getMessage());
             throw new SystemException(e);
         }
@@ -271,20 +271,20 @@ public abstract class JtaTransactionPoli
 
     protected Transaction suspendTransaction() throws SystemException {
         try {
-            Transaction tx = transactionManager.suspend();
+            final Transaction tx = transactionManager.suspend();
             if (tx == null) {
                 txLogger.debug("TX {0}: No transaction to suspend", transactionType);
             } else {
                 txLogger.debug("TX {0}: Suspended transaction {1}", transactionType, tx);
             }
             return tx;
-        } catch (javax.transaction.SystemException se) {
+        } catch (final javax.transaction.SystemException se) {
             txLogger.error("Exception during suspend()", se);
             throw new SystemException(se);
         }
     }
 
-    protected void resumeTransaction(Transaction tx) throws SystemException {
+    protected void resumeTransaction(final Transaction tx) throws SystemException {
         try {
             if (tx == null) {
                 txLogger.debug("TX {0}: No transaction to resume", transactionType);
@@ -292,26 +292,26 @@ public abstract class JtaTransactionPoli
                 txLogger.debug("TX {0}: Resuming transaction {1}", transactionType, tx);
                 transactionManager.resume(tx);
             }
-        } catch (InvalidTransactionException ite) {
+        } catch (final InvalidTransactionException ite) {
 
             txLogger.error("Could not resume the client's transaction, the transaction is no longer valid: {0}", ite.getMessage());
             throw new SystemException(ite);
-        } catch (IllegalStateException e) {
+        } catch (final IllegalStateException e) {
 
             txLogger.error("Could not resume the client's transaction: {0}", e.getMessage());
             throw new SystemException(e);
-        } catch (javax.transaction.SystemException e) {
+        } catch (final javax.transaction.SystemException e) {
 
             txLogger.error("Could not resume the client's transaction: The transaction reported a system exception: {0}", e.getMessage());
             throw new SystemException(e);
         }
     }
 
-    protected void completeTransaction(Transaction tx) throws SystemException, ApplicationException {
-        boolean shouldRollback;
+    protected void completeTransaction(final Transaction tx) throws SystemException, ApplicationException {
+        final boolean shouldRollback;
         try {
             shouldRollback = tx.getStatus() != Status.STATUS_ACTIVE;
-        } catch (javax.transaction.SystemException e) {
+        } catch (final javax.transaction.SystemException e) {
             txLogger.error("The Transaction Manager has encountered an unexpected error condition while attempting to obtain transaction status: {0}", e.getMessage());
             throw new SystemException(e);
         }
@@ -329,40 +329,40 @@ public abstract class JtaTransactionPoli
             } else {
                 tx.commit();
             }
-        } catch (RollbackException e) {
+        } catch (final RollbackException e) {
 
             txLogger.debug("The transaction has been rolled back rather than commited: {0}", e.getMessage());
-            Throwable txe = new TransactionRolledbackException("Transaction was rolled back, presumably because setRollbackOnly was called during a synchronization").initCause(e);
+            final Throwable txe = new TransactionRolledbackException("Transaction was rolled back, presumably because setRollbackOnly was called during a synchronization").initCause(e);
             throw new ApplicationException(txe);
 
-        } catch (HeuristicMixedException e) {
+        } catch (final HeuristicMixedException e) {
 
             txLogger.debug("A heuristic decision was made, some relevant updates have been committed while others have been rolled back: {0}", e.getMessage());
             throw new ApplicationException(new RemoteException("A heuristic decision was made, some relevant updates have been committed while others have been rolled back", e));
 
-        } catch (HeuristicRollbackException e) {
+        } catch (final HeuristicRollbackException e) {
 
             txLogger.debug("A heuristic decision was made while commiting the transaction, some relevant updates have been rolled back: {0}", e.getMessage());
             throw new ApplicationException(new RemoteException("A heuristic decision was made while commiting the transaction, some relevant updates have been rolled back", e));
 
-        } catch (SecurityException e) {
+        } catch (final SecurityException e) {
 
             txLogger.error("The current thread is not allowed to commit the transaction: {0}", e.getMessage());
             throw new SystemException(e);
 
-        } catch (IllegalStateException e) {
+        } catch (final IllegalStateException e) {
 
             txLogger.error("The current thread is not associated with a transaction: {0}", e.getMessage());
             throw new SystemException(e);
 
-        } catch (javax.transaction.SystemException e) {
+        } catch (final javax.transaction.SystemException e) {
             txLogger.error("The Transaction Manager has encountered an unexpected error condition while attempting to commit the transaction: {0}", e.getMessage());
 
             throw new SystemException(e);
         }
     }
 
-    protected void rollbackTransaction(Transaction tx) throws SystemException {
+    protected void rollbackTransaction(final Transaction tx) throws SystemException {
         try {
             txLogger.debug("TX {0}: Rolling back transaction {1}", transactionType, tx);
             if (tx.equals(transactionManager.getTransaction())) {
@@ -371,12 +371,12 @@ public abstract class JtaTransactionPoli
             } else {
                 tx.rollback();
             }
-        } catch (IllegalStateException e) {
+        } catch (final IllegalStateException e) {
 
             logger.error("The TransactionManager reported an exception while attempting to rollback the transaction: " + e.getMessage());
             throw new SystemException(e);
 
-        } catch (javax.transaction.SystemException e) {
+        } catch (final javax.transaction.SystemException e) {
 
             logger.error("The TransactionManager reported an exception while attempting to rollback the transaction: " + e.getMessage());
             throw new SystemException(e);

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/JtaTransactionPolicyFactory.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/JtaTransactionPolicyFactory.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/JtaTransactionPolicyFactory.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/JtaTransactionPolicyFactory.java Wed Feb 19 15:47:58 2014
@@ -24,12 +24,12 @@ import javax.transaction.TransactionMana
 public class JtaTransactionPolicyFactory implements TransactionPolicyFactory {
     private final TransactionManager transactionManager;
 
-    public JtaTransactionPolicyFactory(TransactionManager transactionManager) {
+    public JtaTransactionPolicyFactory(final TransactionManager transactionManager) {
         if (transactionManager == null) throw new NullPointerException("transactionManager is null");
         this.transactionManager = transactionManager;
     }
 
-    public TransactionPolicy createTransactionPolicy(TransactionType type) throws SystemException, ApplicationException {
+    public TransactionPolicy createTransactionPolicy(final TransactionType type) throws SystemException, ApplicationException {
         switch (type) {
             case Required:
                 return new TxRequired(transactionManager);

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/SimpleBootstrapContext.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/SimpleBootstrapContext.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/SimpleBootstrapContext.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/SimpleBootstrapContext.java Wed Feb 19 15:47:58 2014
@@ -29,12 +29,12 @@ public class SimpleBootstrapContext impl
     private final WorkManager workManager;
     private final XATerminator xaTerminator;
 
-    public SimpleBootstrapContext(WorkManager workManager) {
+    public SimpleBootstrapContext(final WorkManager workManager) {
         this.workManager = workManager;
         xaTerminator = null;
     }
 
-    public SimpleBootstrapContext(WorkManager workManager, XATerminator xaTerminator) {
+    public SimpleBootstrapContext(final WorkManager workManager, final XATerminator xaTerminator) {
         this.workManager = workManager;
         this.xaTerminator = xaTerminator;
     }
@@ -59,9 +59,9 @@ public class SimpleBootstrapContext impl
         return null;
     }
 
-    public boolean isContextSupported(Class<? extends WorkContext> cls) {
+    public boolean isContextSupported(final Class<? extends WorkContext> cls) {
         if (workManager instanceof GeronimoWorkManager) {
-            GeronimoWorkManager geronimoWorkManager = (GeronimoWorkManager) workManager;
+            final GeronimoWorkManager geronimoWorkManager = (GeronimoWorkManager) workManager;
             return geronimoWorkManager.isContextSupported(cls);
         }
         

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/SimpleWorkManager.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/SimpleWorkManager.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/SimpleWorkManager.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/SimpleWorkManager.java Wed Feb 19 15:47:58 2014
@@ -43,48 +43,48 @@ public class SimpleWorkManager implement
      */
     private Executor executor;
 
-    public SimpleWorkManager(Executor executor) {
+    public SimpleWorkManager(final Executor executor) {
         if (executor == null) throw new NullPointerException("executor is null");
         this.executor = executor;
     }
 
-    public void doWork(Work work) throws WorkException {
+    public void doWork(final Work work) throws WorkException {
         if (work == null) throw new NullPointerException("work is null");
         doWork(work, INDEFINITE, null, null);
     }
 
-    public void doWork(Work work, long startTimeout, ExecutionContext executionContext, WorkListener workListener) throws WorkException {
+    public void doWork(final Work work, final long startTimeout, final ExecutionContext executionContext, final WorkListener workListener) throws WorkException {
         if (work == null) throw new NullPointerException("work is null");
         executeWork(WorkType.DO, work, startTimeout, executionContext, workListener);
     }
 
-    public long startWork(Work work) throws WorkException {
+    public long startWork(final Work work) throws WorkException {
         if (work == null) throw new NullPointerException("work is null");
         return startWork(work, INDEFINITE, null, null);
     }
 
-    public long startWork(Work work, long startTimeout, ExecutionContext executionContext, WorkListener workListener) throws WorkException {
+    public long startWork(final Work work, final long startTimeout, final ExecutionContext executionContext, final WorkListener workListener) throws WorkException {
         if (work == null) throw new NullPointerException("work is null");
         return executeWork(WorkType.START, work, startTimeout, executionContext, workListener);
     }
 
-    public void scheduleWork(Work work) throws WorkException {
+    public void scheduleWork(final Work work) throws WorkException {
         if (work == null) throw new NullPointerException("work is null");
         scheduleWork(work, INDEFINITE, null, null);
     }
 
-    public void scheduleWork(Work work, long startTimeout, ExecutionContext executionContext, WorkListener workListener) throws WorkException {
+    public void scheduleWork(final Work work, final long startTimeout, final ExecutionContext executionContext, final WorkListener workListener) throws WorkException {
         if (work == null) throw new NullPointerException("work is null");
         executeWork(WorkType.SCHEDULE, work, startTimeout, executionContext, workListener);
     }
 
-    private long executeWork(WorkType workType, Work work, long startTimeout, ExecutionContext executionContext, WorkListener workListener) throws WorkException {
+    private long executeWork(final WorkType workType, final Work work, final long startTimeout, final ExecutionContext executionContext, WorkListener workListener) throws WorkException {
         // assure we have a work listener
         if (workListener == null) workListener = new LoggingWorkListener(workType);
 
         // reject work with an XID
         if (executionContext != null && executionContext.getXid() != null) {
-            WorkRejectedException workRejectedException = new WorkRejectedException("SimpleWorkManager can not import an XID", WorkException.TX_RECREATE_FAILED);
+            final WorkRejectedException workRejectedException = new WorkRejectedException("SimpleWorkManager can not import an XID", WorkException.TX_RECREATE_FAILED);
             workListener.workRejected(new WorkEvent(this, WorkEvent.WORK_REJECTED, work, workRejectedException));
             throw workRejectedException;
         }
@@ -93,21 +93,21 @@ public class SimpleWorkManager implement
         workListener.workAccepted(new WorkEvent(this, WorkEvent.WORK_ACCEPTED, work, null));
 
         // execute work
-        Worker worker = new Worker(work, workListener, startTimeout);
+        final Worker worker = new Worker(work, workListener, startTimeout);
         executor.execute(worker);
 
         if (workType == WorkType.DO) {
             // wait for completion
             try {
                 worker.waitForCompletion();
-            } catch (InterruptedException e) {
-                WorkException workException = new WorkException("Work submission thread was interrupted", e);
+            } catch (final InterruptedException e) {
+                final WorkException workException = new WorkException("Work submission thread was interrupted", e);
                 workException.setErrorCode(WorkException.INTERNAL);
                 throw workException;
             }
 
             // if work threw an exception, rethrow it
-            WorkException workCompletedException = worker.getWorkException();
+            final WorkException workCompletedException = worker.getWorkException();
             if (workCompletedException != null) {
                 throw workCompletedException;
             }
@@ -115,14 +115,14 @@ public class SimpleWorkManager implement
             // wait for work to start
             try {
                 worker.waitForStart();
-            } catch (InterruptedException e) {
-                WorkException workException = new WorkException("Work submission thread was interrupted", e);
+            } catch (final InterruptedException e) {
+                final WorkException workException = new WorkException("Work submission thread was interrupted", e);
                 workException.setErrorCode(WorkException.INTERNAL);
                 throw workException;
             }
 
             // if work threw a rejection exception, rethrow it (it is the exception for timeout) 
-            WorkException workCompletedException = worker.getWorkException();
+            final WorkException workCompletedException = worker.getWorkException();
             if (workCompletedException instanceof WorkRejectedException) {
                 throw workCompletedException;
             }
@@ -141,7 +141,7 @@ public class SimpleWorkManager implement
         private long startDelay = UNKNOWN;
         private WorkException workException;
 
-        public Worker(Work work, WorkListener workListener, long startTimeout) {
+        public Worker(final Work work, final WorkListener workListener, final long startTimeout) {
             this.work = work;
             this.workListener = workListener;
             if (startTimeout <= 0) {
@@ -171,7 +171,7 @@ public class SimpleWorkManager implement
                 workException = null;
                 try {
                     work.run();
-                } catch (Throwable e) {
+                } catch (final Throwable e) {
                     workException = new WorkCompletedException(e);
                 } finally {
                     // notify listener that work completed (with an optional exception)
@@ -206,16 +206,16 @@ public class SimpleWorkManager implement
     private static final class LoggingWorkListener extends WorkAdapter {
         private final WorkType workType;
 
-        private LoggingWorkListener(WorkType workType) {
+        private LoggingWorkListener(final WorkType workType) {
             this.workType = workType;
         }
 
-        public void workRejected(WorkEvent event) {
+        public void workRejected(final WorkEvent event) {
             // Don't log doWork or startWork since exception is propagated to caller
             if (workType == WorkType.DO || workType == WorkType.START) {
                 return;
             }
-            WorkException exception = event.getException();
+            final WorkException exception = event.getException();
             if (exception != null) {
                 if (WorkException.START_TIMED_OUT.equals(exception.getErrorCode())) {
                     logger.error(exception.getMessage());
@@ -223,7 +223,7 @@ public class SimpleWorkManager implement
             }
         }
 
-        public void workCompleted(WorkEvent event) {
+        public void workCompleted(final WorkEvent event) {
             // Don't log doWork since exception is propagated to caller
             if (workType == WorkType.DO) {
                 return;

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TransactionType.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TransactionType.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TransactionType.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TransactionType.java Wed Feb 19 15:47:58 2014
@@ -27,7 +27,7 @@ public enum TransactionType {
     Supports,
     BeanManaged;
 
-    public static TransactionType get(TransactionAttributeType type) {
+    public static TransactionType get(final TransactionAttributeType type) {
         switch (type) {
             case REQUIRED: return Required;
             case REQUIRES_NEW: return RequiresNew;
@@ -39,8 +39,8 @@ public enum TransactionType {
         }
     }
 
-    public static TransactionType get(String name) {
-        for (TransactionType type : values()) {
+    public static TransactionType get(final String name) {
+        for (final TransactionType type : values()) {
             if (type.name().equalsIgnoreCase(name)) return type;
         }
 

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxBeanManaged.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxBeanManaged.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxBeanManaged.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxBeanManaged.java Wed Feb 19 15:47:58 2014
@@ -28,7 +28,7 @@ import java.rmi.RemoteException;
 public class TxBeanManaged extends JtaTransactionPolicy implements BeanTransactionPolicy {
     private Transaction clientTx;
 
-    public TxBeanManaged(TransactionManager transactionManager) throws SystemException {
+    public TxBeanManaged(final TransactionManager transactionManager) throws SystemException {
         super(TransactionType.BeanManaged, transactionManager);
 
         clientTx = suspendTransaction();
@@ -45,7 +45,7 @@ public class TxBeanManaged extends JtaTr
     public Transaction getCurrentTransaction() {
         try {
             return getTransaction();
-        } catch (SystemException e) {
+        } catch (final SystemException e) {
             throw new IllegalStateException("Exception getting current transaction");
         }
     }
@@ -56,7 +56,7 @@ public class TxBeanManaged extends JtaTr
 
     public SuspendedTransaction suspendUserTransaction() throws SystemException {
         // Get the transaction after the method invocation
-        Transaction currentTx = suspendTransaction();
+        final Transaction currentTx = suspendTransaction();
         if (currentTx == null) {
             return null;
         }
@@ -64,17 +64,17 @@ public class TxBeanManaged extends JtaTr
         return new JtaSuspendedTransaction(currentTx);
     }
 
-    public void resumeUserTransaction(SuspendedTransaction suspendedTransaction) throws SystemException {
+    public void resumeUserTransaction(final SuspendedTransaction suspendedTransaction) throws SystemException {
         if (suspendedTransaction == null) throw new NullPointerException("suspendedTransaction is null");
         
-        Transaction beanTransaction = ((JtaSuspendedTransaction) suspendedTransaction).transaction;
+        final Transaction beanTransaction = ((JtaSuspendedTransaction) suspendedTransaction).transaction;
         if (beanTransaction == null) {
             throw new SystemException("Bean transaction has already been resumed or destroyed");
         }
 
         try {
             resumeTransaction(beanTransaction);
-        } catch (SystemException e) {
+        } catch (final SystemException e) {
             suspendedTransaction.destroy();
             throw e;
         }
@@ -84,9 +84,9 @@ public class TxBeanManaged extends JtaTr
         try {
             // The Container must detect the case in which a transaction was started, but
             // not completed, in the business method, and handle it as follows:
-            Transaction currentTx = getTransaction();
+            final Transaction currentTx = getTransaction();
             if (currentTx != null) {
-                String message = "The EJB started a transaction but did not complete it.";
+                final String message = "The EJB started a transaction but did not complete it.";
 
                 /* [1] Log this as an application error ********/
                 logger.error(message);
@@ -94,7 +94,7 @@ public class TxBeanManaged extends JtaTr
                 /* [2] Roll back the started transaction *******/
                 try {
                     rollbackTransaction(currentTx);
-                } catch (Throwable t) {
+                } catch (final Throwable t) {
                     // no-op
                 }
 
@@ -111,13 +111,13 @@ public class TxBeanManaged extends JtaTr
     private static class JtaSuspendedTransaction implements SuspendedTransaction {
         private Transaction transaction;
 
-        public JtaSuspendedTransaction(Transaction transaction) {
+        public JtaSuspendedTransaction(final Transaction transaction) {
             if (transaction == null) throw new NullPointerException("transaction is null");
             this.transaction = transaction;
         }
 
         public void destroy() {
-            Transaction beanTransaction = transaction;
+            final Transaction beanTransaction = transaction;
             transaction = null;
             if (beanTransaction == null) {
                 return;
@@ -125,7 +125,7 @@ public class TxBeanManaged extends JtaTr
 
             try {
                 beanTransaction.rollback();
-            } catch (Exception e) {
+            } catch (final Exception e) {
                 logger.error("Error rolling back suspended transaction for discarded stateful session bean instance");
             }
         }

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxMandatory.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxMandatory.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxMandatory.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxMandatory.java Wed Feb 19 15:47:58 2014
@@ -41,7 +41,7 @@ import javax.transaction.TransactionRequ
 public class TxMandatory extends JtaTransactionPolicy {
     private final Transaction clientTx;
 
-    public TxMandatory(TransactionManager transactionManager) throws SystemException, ApplicationException {
+    public TxMandatory(final TransactionManager transactionManager) throws SystemException, ApplicationException {
         super(TransactionType.Mandatory, transactionManager);
 
         clientTx = getTransaction();

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxNever.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxNever.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxNever.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxNever.java Wed Feb 19 15:47:58 2014
@@ -39,7 +39,7 @@ import java.rmi.RemoteException;
  * same steps as described in the NotSupported case.
  */
 public class TxNever extends JtaTransactionPolicy {
-    public TxNever(TransactionManager transactionManager) throws SystemException, ApplicationException {
+    public TxNever(final TransactionManager transactionManager) throws SystemException, ApplicationException {
         super(TransactionType.Never, transactionManager);
 
         if (getTransaction() != null) {

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxNotSupported.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxNotSupported.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxNotSupported.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxNotSupported.java Wed Feb 19 15:47:58 2014
@@ -43,7 +43,7 @@ import javax.transaction.TransactionMana
 public class TxNotSupported extends JtaTransactionPolicy {
     private final Transaction clientTx;
 
-    public TxNotSupported(TransactionManager transactionManager) throws SystemException {
+    public TxNotSupported(final TransactionManager transactionManager) throws SystemException {
         super(TransactionType.NotSupported, transactionManager);
 
         clientTx = suspendTransaction();

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxRequired.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxRequired.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxRequired.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxRequired.java Wed Feb 19 15:47:58 2014
@@ -46,7 +46,7 @@ public class TxRequired extends JtaTrans
     private final Transaction clientTx;
     private final Transaction currentTx;
 
-    public TxRequired(TransactionManager transactionManager) throws SystemException {
+    public TxRequired(final TransactionManager transactionManager) throws SystemException {
         super(TransactionType.Required, transactionManager);
 
         clientTx = getTransaction();

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxRequiresNew.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxRequiresNew.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxRequiresNew.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxRequiresNew.java Wed Feb 19 15:47:58 2014
@@ -48,7 +48,7 @@ public class TxRequiresNew extends JtaTr
     private final Transaction clientTx;
     private final Transaction currentTx;
 
-    public TxRequiresNew(TransactionManager transactionManager) throws SystemException {
+    public TxRequiresNew(final TransactionManager transactionManager) throws SystemException {
         super(TransactionType.RequiresNew, transactionManager);
 
         clientTx = suspendTransaction();

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxSupports.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxSupports.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxSupports.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TxSupports.java Wed Feb 19 15:47:58 2014
@@ -41,7 +41,7 @@ import javax.transaction.TransactionMana
 public class TxSupports extends JtaTransactionPolicy {
     private final Transaction clientTx;
 
-    public TxSupports(TransactionManager transactionManager) throws SystemException {
+    public TxSupports(final TransactionManager transactionManager) throws SystemException {
         super(TransactionType.Supports, transactionManager);
 
         clientTx = getTransaction();

Modified: tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/webservices/HandlerChainData.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/webservices/HandlerChainData.java?rev=1569795&r1=1569794&r2=1569795&view=diff
==============================================================================
--- tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/webservices/HandlerChainData.java (original)
+++ tomee/tomee/trunk/container/openejb-core/src/main/java/org/apache/openejb/core/webservices/HandlerChainData.java Wed Feb 19 15:47:58 2014
@@ -26,7 +26,7 @@ public class HandlerChainData {
     private final List<String> protocolBindings = new ArrayList<String>();
     private final List<HandlerData> handlers = new ArrayList<HandlerData>();
 
-    public HandlerChainData(QName serviceNamePattern, QName portNamePattern, List<String> protocolBindings, List<HandlerData> handlers) {
+    public HandlerChainData(final QName serviceNamePattern, final QName portNamePattern, final List<String> protocolBindings, final List<HandlerData> handlers) {
         this.serviceNamePattern = serviceNamePattern;
         this.portNamePattern = portNamePattern;
         this.protocolBindings.addAll(protocolBindings);