Author: tyrell
Date: Mon Feb  4 10:48:20 2008
New Revision: 13246

Log:

Minor code cleanup.

Modified:
   
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/system/FunctionSchedulingJob.java

Modified: 
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/system/FunctionSchedulingJob.java
==============================================================================
--- 
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/system/FunctionSchedulingJob.java
     (original)
+++ 
trunk/mashup/java/modules/hostobjects/src/org/wso2/mashup/hostobjects/system/FunctionSchedulingJob.java
     Mon Feb  4 10:48:20 2008
@@ -45,13 +45,12 @@
 
     public void execute(JobExecutionContext jobExecutionContext) throws 
JobExecutionException {
 
-        final Object jsFunction;
         try {
             MessageContext currentMessageContext =
                     (MessageContext) 
jobExecutionContext.getJobDetail().getJobDataMap()
                             .get(FunctionSchedulingJob.PARENT_MESSAGE_CONTEXT);
 
-            jsFunction = jobExecutionContext.getJobDetail().getJobDataMap()
+            Object jsFunction = 
jobExecutionContext.getJobDetail().getJobDataMap()
                     .get(FunctionSchedulingJob.JAVASCRIPT_FUNCTION);
 
             JavaScriptEngine jsEngine =
@@ -97,7 +96,7 @@
 
             Reader reader = readJS(currentMessageContext);
 
-            Object[] args = null;
+            Object[] args;
 
             //support for importing javaScript files using services.xml or the 
axis2.xml
             String scripts = getImportScriptsList(currentMessageContext);

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to