camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jans...@apache.org
Subject svn commit: r917847 - /camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/CamelJob.java
Date Tue, 02 Mar 2010 02:53:34 GMT
Author: janstey
Date: Tue Mar  2 02:53:33 2010
New Revision: 917847

URL: http://svn.apache.org/viewvc?rev=917847&view=rev
Log:
improve readability

Modified:
    camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/CamelJob.java

Modified: camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/CamelJob.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/CamelJob.java?rev=917847&r1=917846&r2=917847&view=diff
==============================================================================
--- camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/CamelJob.java
(original)
+++ camel/trunk/components/camel-quartz/src/main/java/org/apache/camel/component/quartz/CamelJob.java
Tue Mar  2 02:53:33 2010
@@ -26,10 +26,10 @@
 public class CamelJob implements Job {
 
     public void execute(JobExecutionContext context) throws JobExecutionException {
-        QuartzEndpoint component = (QuartzEndpoint) context.getJobDetail().getJobDataMap().get(QuartzConstants.QUARTZ_ENDPOINT);
-        if (component == null) {
+        QuartzEndpoint endpoint = (QuartzEndpoint) context.getJobDetail().getJobDataMap().get(QuartzConstants.QUARTZ_ENDPOINT);
+        if (endpoint == null) {
             throw new JobExecutionException("No quartz endpoint available for key: " + QuartzConstants.QUARTZ_ENDPOINT);
         }
-        component.onJobExecute(context);
+        endpoint.onJobExecute(context);
     }
 }
\ No newline at end of file



Mime
View raw message