Commits

jrosenberg  committed 894b6f8

Issue number: Checkstyle
Fixed checkstyle warnings

git-svn-id: http://svn.opensymphony.com/svn/quartz/trunk@59269f7d36a-ea1c-0410-88ea-9fd03e4c9665

  • Participants
  • Parent commits 8528b13

Comments (0)

Files changed (7)

File src/java/org/quartz/jobs/ee/jms/JmsHelper.java

  * @author Weston M. Price
  */
 public class JmsHelper {
-	
+    
     public static final String INITIAL_CONTEXT_FACTORY = "java.naming.factory.initial";
     
     public static final String PROVIDER_URL = "java.naming.provider.url";
 
     public static final String CREDENTIALS = "java.naming.security.credentials";
 
-	public static final String JMS_CONNECTION_FACTORY_JNDI = "jms.connection.factory";
+    public static final String JMS_CONNECTION_FACTORY_JNDI = "jms.connection.factory";
 
-	public static final String JMS_DESTINATION_JNDI = "jms.destination";
+    public static final String JMS_DESTINATION_JNDI = "jms.destination";
 
-	public static final String JMS_USER = "jms.user";
-	
-	public static final String JMS_PASSWORD = "jms.password";
+    public static final String JMS_USER = "jms.user";
+    
+    public static final String JMS_PASSWORD = "jms.password";
     
     public static final String JMS_ACK_MODE = "jms.acknowledge";
         
         
     public static final String JMS_MSG_FACTORY_CLASS_NAME = "jms.message.factory.class.name";
     
-	public static InitialContext getInitialContext(final JobDataMap jobDataMap) throws NamingException
-	{
-		
-		Hashtable params = new Hashtable(2);
-	    
-	    String initialContextFactory =
-	        jobDataMap.getString(INITIAL_CONTEXT_FACTORY);
-	
-	    if (initialContextFactory != null) {
-	        params.put(Context.INITIAL_CONTEXT_FACTORY, initialContextFactory);
-	    }
-	    
-	    String providerUrl = jobDataMap.getString(PROVIDER_URL);
-	    if (providerUrl != null) {
-	        params.put(Context.PROVIDER_URL, providerUrl);
-	    }
+    private JmsHelper() {
+    }
+    
+    public static InitialContext getInitialContext(final JobDataMap jobDataMap) throws NamingException
+    {
+        
+        Hashtable params = new Hashtable(2);
+        
+        String initialContextFactory =
+            jobDataMap.getString(INITIAL_CONTEXT_FACTORY);
+    
+        if (initialContextFactory != null) {
+            params.put(Context.INITIAL_CONTEXT_FACTORY, initialContextFactory);
+        }
+        
+        String providerUrl = jobDataMap.getString(PROVIDER_URL);
+        if (providerUrl != null) {
+            params.put(Context.PROVIDER_URL, providerUrl);
+        }
 
-	    String principal = jobDataMap.getString(PRINCIPAL);
-	    if ( principal != null ) {
-	        params.put( Context.SECURITY_PRINCIPAL, principal );
-	    }
+        String principal = jobDataMap.getString(PRINCIPAL);
+        if ( principal != null ) {
+            params.put( Context.SECURITY_PRINCIPAL, principal );
+        }
 
-	    String credentials = jobDataMap.getString(CREDENTIALS);
-	    if ( credentials != null ) {
-	        params.put( Context.SECURITY_CREDENTIALS, credentials );
-	    }
+        String credentials = jobDataMap.getString(CREDENTIALS);
+        if ( credentials != null ) {
+            params.put( Context.SECURITY_CREDENTIALS, credentials );
+        }
 
-	    if (params.size() == 0)
-	    {
-	        return new InitialContext();
-	    }
-	    else
-	    {
-	        return new InitialContext(params);
-	    }
-		
-	}
-		
-	public static boolean isDestinationSecure(JobDataMap jobDataMap)
-	{
-		String user = jobDataMap.getString(JmsHelper.JMS_USER);
-		String pw = jobDataMap.getString(JmsHelper.JMS_PASSWORD);
-		
-		return (user != null && pw != null);
-		
-	}
-	
-	/**
-	 * Closes a resource that has a <code>close()</code> method.
-	 * 
-	 * @param resource the resource to close.
-	 */
-	public static void closeResource(Object resource)
-	{
-		//TODO determine if vargs can be used in Quartz (1.5 features)
-		if(resource == null)
-		{
-			return;
-		}
-		
-		try {
-			
-			final Method m = resource.getClass().getMethod("close", new Class[0]);
-			m.invoke(resource, new Object[0]);
-		
-		} catch (SecurityException e) {
-		} catch (IllegalArgumentException e) {
-		} catch (NoSuchMethodException e) {
-		} catch (IllegalAccessException e) {
-		} catch (InvocationTargetException e) {
-		}
-		
-	}
+        if (params.size() == 0) {
+            return new InitialContext();
+        } else {
+            return new InitialContext(params);
+        }
+        
+    }
+        
+    public static boolean isDestinationSecure(JobDataMap jobDataMap) {
+        String user = jobDataMap.getString(JmsHelper.JMS_USER);
+        String pw = jobDataMap.getString(JmsHelper.JMS_PASSWORD);
+        
+        return (user != null && pw != null);
+        
+    }
+    
+    /**
+     * Closes a resource that has a <code>close()</code> method.
+     * 
+     * @param resource the resource to close.
+     */
+    public static void closeResource(Object resource) {
+        //TODO determine if vargs can be used in Quartz (1.5 features)
+        if(resource == null) {
+            return;
+        }
+        
+        try {
+            
+            final Method m = resource.getClass().getMethod("close", new Class[0]);
+            m.invoke(resource, new Object[0]);
+        
+        } catch (SecurityException e) {
+        } catch (IllegalArgumentException e) {
+        } catch (NoSuchMethodException e) {
+        } catch (IllegalAccessException e) {
+        } catch (InvocationTargetException e) {
+        }
+        
+    }
 
-	public static boolean useTransaction(JobDataMap jobDataMap)
-	{
-		return false;
-	}
-	
-	/**
-	 * Creates the <code>JmsMessageFactory</code>
-	 * @param factoryName
-	 * @return
-	 * @throws JmsJobException
-	 */
-	public static JmsMessageFactory getMessageFactory(String factoryName) throws JmsJobException
-	{
-		
-		try {
-		
-			Class clazz = Class.forName(factoryName);
-			JmsMessageFactory messageFactory = (JmsMessageFactory)clazz.newInstance();
-			return messageFactory;
-		
-		} catch (ClassNotFoundException e) {
-			
-			throw new JmsJobException(e.getMessage(), e);
-			
-		} catch (InstantiationException e) {
+    public static boolean useTransaction(JobDataMap jobDataMap) {
+        return false;
+    }
+    
+    /**
+     * Creates the <code>JmsMessageFactory</code>
+     * @param factoryName
+     * @return
+     * @throws JmsJobException
+     */
+    public static JmsMessageFactory getMessageFactory(String factoryName) throws JmsJobException
+    {
+        
+        try {
+        
+            Class clazz = Class.forName(factoryName);
+            JmsMessageFactory messageFactory = (JmsMessageFactory)clazz.newInstance();
+            return messageFactory;
+        
+        } catch (ClassNotFoundException e) {
+            
+            throw new JmsJobException(e.getMessage(), e);
+            
+        } catch (InstantiationException e) {
 
-			throw new JmsJobException(e.getMessage(), e);
-		
-		} catch (IllegalAccessException e) {
+            throw new JmsJobException(e.getMessage(), e);
+        
+        } catch (IllegalAccessException e) {
 
-			throw new JmsJobException(e.getMessage(), e);
-		}
-		
-		
-	}
-	
+            throw new JmsJobException(e.getMessage(), e);
+        }
+        
+        
+    }
+    
 }

File src/java/org/quartz/jobs/ee/jms/JmsJobException.java

  */
 public class JmsJobException extends Exception {
 
-	private static final long serialVersionUID = 3045647075496522093L;
+    private static final long serialVersionUID = 3045647075496522093L;
 
-	public JmsJobException() {
-	}
+    public JmsJobException() {
+    }
 
-	public JmsJobException(String message) {
-		super(message);
-	}
+    public JmsJobException(String message) {
+        super(message);
+    }
 
-	public JmsJobException(Throwable cause) {
-		super(cause);
-	}
+    public JmsJobException(Throwable cause) {
+        super(cause);
+    }
 
-	public JmsJobException(String message, Throwable cause) {
-		super(message, cause);
-	}
+    public JmsJobException(String message, Throwable cause) {
+        super(message, cause);
+    }
 
 }

File src/java/org/quartz/jobs/ee/jms/JmsMessageFactory.java

  * @author Weston M. Price
  * 
  */
-public interface JmsMessageFactory 
-{
-	
-	/**
-	 * Creates a <code>javax.jms.Message</code>.
-	 * 
-	 * @param jobDataMap the <code>JobDataMap</code>
-	 * @param session the <code>javax.jms.Session</code>
-	 * 
-	 * @return the <code>javax.jms.Message</code>
-	 */
-	public Message createMessage(JobDataMap jobDataMap, Session session);
-		
+public interface JmsMessageFactory {
+    
+    /**
+     * Creates a <code>javax.jms.Message</code>.
+     * 
+     * @param jobDataMap the <code>JobDataMap</code>
+     * @param session the <code>javax.jms.Session</code>
+     * 
+     * @return the <code>javax.jms.Message</code>
+     */
+    Message createMessage(JobDataMap jobDataMap, Session session);
 }

File src/java/org/quartz/jobs/ee/jms/SendDesitnationMessageJob.java

  */
 package org.quartz.jobs.ee.jms;
 
-import org.quartz.*;
-
-import javax.jms.*;
+import javax.jms.Connection;
+import javax.jms.ConnectionFactory;
+import javax.jms.Destination;
+import javax.jms.JMSException;
+import javax.jms.Message;
+import javax.jms.MessageProducer;
+import javax.jms.Session;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
 
+import org.quartz.Job;
+import org.quartz.JobDataMap;
+import org.quartz.JobDetail;
+import org.quartz.JobExecutionContext;
+import org.quartz.JobExecutionException;
+
 /**
 * <p>
 * A <code>Job</code> that sends a <code>javax.jms.Message</code> to a 
 */
 public class SendDesitnationMessageJob implements Job {
 
-	public void execute(JobExecutionContext context)
-			throws JobExecutionException {
-		
-		ConnectionFactory factory = null;
-		Connection connection = null;
-		Session session = null;
-		MessageProducer producer = null;
-		Destination destination = null;
-		InitialContext initCtx = null;
-		
-		JobDetail detail = context.getJobDetail();
-		JobDataMap jobDataMap = detail.getJobDataMap();
-		
-		try {
-			
-			initCtx = org.quartz.jobs.ee.jms.JmsHelper.getInitialContext(jobDataMap);
-			factory = (ConnectionFactory) initCtx.lookup(org.quartz.jobs.ee.jms.JmsHelper.JMS_CONNECTION_FACTORY_JNDI);
-			
-			if(org.quartz.jobs.ee.jms.JmsHelper.isDestinationSecure(jobDataMap))
-			{
-				String user = jobDataMap.getString(org.quartz.jobs.ee.jms.JmsHelper.JMS_USER);
-				String pw = jobDataMap.getString(org.quartz.jobs.ee.jms.JmsHelper.JMS_PASSWORD);
-				connection = factory.createConnection(user, pw);
-				
-			}
-			else
-			{
-				connection = factory.createConnection();
-					
-			}
-						
-			session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
-			destination = (Destination) initCtx.lookup(org.quartz.jobs.ee.jms.JmsHelper.JMS_DESTINATION_JNDI);
-			producer = session.createProducer(destination);
-			String factoryClass = jobDataMap.getString(org.quartz.jobs.ee.jms.JmsHelper.JMS_MSG_FACTORY_CLASS_NAME);
-			org.quartz.jobs.ee.jms.JmsMessageFactory messageFactory = org.quartz.jobs.ee.jms.JmsHelper.getMessageFactory(factoryClass);
-			Message m = messageFactory.createMessage(jobDataMap, session);
-			producer.send(m);
+    public void execute(JobExecutionContext context)
+        throws JobExecutionException {
+        
+        ConnectionFactory factory = null;
+        Connection connection = null;
+        Session session = null;
+        MessageProducer producer = null;
+        Destination destination = null;
+        InitialContext initCtx = null;
+        
+        JobDetail detail = context.getJobDetail();
+        JobDataMap jobDataMap = detail.getJobDataMap();
+        
+        try {
+            
+            initCtx = org.quartz.jobs.ee.jms.JmsHelper.getInitialContext(jobDataMap);
+            factory = (ConnectionFactory) initCtx.lookup(org.quartz.jobs.ee.jms.JmsHelper.JMS_CONNECTION_FACTORY_JNDI);
+            
+            if(org.quartz.jobs.ee.jms.JmsHelper.isDestinationSecure(jobDataMap))
+            {
+                String user = jobDataMap.getString(org.quartz.jobs.ee.jms.JmsHelper.JMS_USER);
+                String pw = jobDataMap.getString(org.quartz.jobs.ee.jms.JmsHelper.JMS_PASSWORD);
+                connection = factory.createConnection(user, pw);
+            } else {
+                connection = factory.createConnection();
+                    
+            }
+                        
+            session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
+            destination = (Destination) initCtx.lookup(org.quartz.jobs.ee.jms.JmsHelper.JMS_DESTINATION_JNDI);
+            producer = session.createProducer(destination);
+            String factoryClass = jobDataMap.getString(org.quartz.jobs.ee.jms.JmsHelper.JMS_MSG_FACTORY_CLASS_NAME);
+            org.quartz.jobs.ee.jms.JmsMessageFactory messageFactory = org.quartz.jobs.ee.jms.JmsHelper.getMessageFactory(factoryClass);
+            Message m = messageFactory.createMessage(jobDataMap, session);
+            producer.send(m);
 
-		} catch (NamingException e) {
-			
-			throw new JobExecutionException(e);
-			
-		} catch (JMSException e) {
+        } catch (NamingException e) {
+            
+            throw new JobExecutionException(e);
+            
+        } catch (JMSException e) {
 
-			throw new JobExecutionException(e);
+            throw new JobExecutionException(e);
 
-		} catch (JmsJobException e) {
+        } catch (JmsJobException e) {
 
-			throw new JobExecutionException(e);
-		
-		}finally{
-			
-			JmsHelper.closeResource(producer);
-			JmsHelper.closeResource(session);
-			JmsHelper.closeResource(connection);
-		}
+            throw new JobExecutionException(e);
+        
+        }finally{
+            
+            JmsHelper.closeResource(producer);
+            JmsHelper.closeResource(session);
+            JmsHelper.closeResource(connection);
+        }
 
-		
-	}
+        
+    }
 
 }

File src/java/org/quartz/jobs/ee/jms/SendQueueMessageJob.java

  */
 package org.quartz.jobs.ee.jms;
 
-import org.quartz.*;
-
-import javax.jms.*;
+import javax.jms.JMSException;
+import javax.jms.Message;
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueSender;
+import javax.jms.QueueSession;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
 
+import org.quartz.Job;
+import org.quartz.JobDataMap;
+import org.quartz.JobDetail;
+import org.quartz.JobExecutionContext;
+import org.quartz.JobExecutionException;
+
 /**
 * <p>
 * A <code>Job</code> that sends a <code>javax.jms.Message</code> to a 
 */
 public class SendQueueMessageJob implements Job {
 
-	public void execute(JobExecutionContext context)
-			throws JobExecutionException {
-	
-		
-		QueueConnectionFactory qcf = null;
-		QueueConnection conn = null;
-		QueueSession session = null;
-		Queue queue = null;
-		QueueSender sender = null;
-		InitialContext ctx = null;
-		
-		final JobDetail detail = context.getJobDetail();
-		final JobDataMap jobDataMap = detail.getJobDataMap();
-		
-		try {
-		
-			ctx = JmsHelper.getInitialContext(jobDataMap);
-			
-			if(JmsHelper.isDestinationSecure(jobDataMap))
-			{
-				String user = jobDataMap.getString(JmsHelper.JMS_USER);
-				String pw = jobDataMap.getString(JmsHelper.JMS_PASSWORD);
-				conn = qcf.createQueueConnection(user, pw);
-				
-			}
-			else
-			{
-				conn = qcf.createQueueConnection();
-				
-			}
-			
-			boolean useTransactions = JmsHelper.useTransaction(jobDataMap);
-			int ackMode = jobDataMap.getInt(JmsHelper.JMS_ACK_MODE);
-			session = conn.createQueueSession(useTransactions, ackMode);
-			queue = (Queue)ctx.lookup(JmsHelper.JMS_DESTINATION_JNDI);
-			sender = session.createSender(queue);
-			String factoryClass = jobDataMap.getString(JmsHelper.JMS_MSG_FACTORY_CLASS_NAME);
-			JmsMessageFactory factory = JmsHelper.getMessageFactory(factoryClass);
-			Message m = factory.createMessage(jobDataMap, session);
-			sender.send(m);
-			
-			
-			
-		} catch (NamingException e) {
-			
-			throw new JobExecutionException(e.getMessage());
-			
-		} catch (JMSException e)
-		{
-			throw new JobExecutionException(e.getMessage());
-			
-		} catch (JmsJobException e) {
-
-			throw new JobExecutionException(e.getMessage());
-		
-		}finally{
-			
-			JmsHelper.closeResource(sender);
-			JmsHelper.closeResource(session);
-			JmsHelper.closeResource(conn);
-
-		}
-
-	}
-
+    public void execute(JobExecutionContext context)
+        throws JobExecutionException {
+    
+        
+        QueueConnectionFactory qcf = null;
+        QueueConnection conn = null;
+        QueueSession session = null;
+        Queue queue = null;
+        QueueSender sender = null;
+        InitialContext ctx = null;
+        
+        final JobDetail detail = context.getJobDetail();
+        final JobDataMap jobDataMap = detail.getJobDataMap();
+        
+        try {
+        
+            ctx = JmsHelper.getInitialContext(jobDataMap);
+            
+            if(JmsHelper.isDestinationSecure(jobDataMap)) {
+                String user = jobDataMap.getString(JmsHelper.JMS_USER);
+                String pw = jobDataMap.getString(JmsHelper.JMS_PASSWORD);
+                conn = qcf.createQueueConnection(user, pw);
+            } else {
+                conn = qcf.createQueueConnection();
+            }
+            
+            boolean useTransactions = JmsHelper.useTransaction(jobDataMap);
+            int ackMode = jobDataMap.getInt(JmsHelper.JMS_ACK_MODE);
+            session = conn.createQueueSession(useTransactions, ackMode);
+            queue = (Queue)ctx.lookup(JmsHelper.JMS_DESTINATION_JNDI);
+            sender = session.createSender(queue);
+            String factoryClass = jobDataMap.getString(JmsHelper.JMS_MSG_FACTORY_CLASS_NAME);
+            JmsMessageFactory factory = JmsHelper.getMessageFactory(factoryClass);
+            Message m = factory.createMessage(jobDataMap, session);
+            sender.send(m);
+        } catch (NamingException e) {
+            throw new JobExecutionException(e.getMessage());
+        } catch (JMSException e) {
+            throw new JobExecutionException(e.getMessage());
+        } catch (JmsJobException e) {
+            throw new JobExecutionException(e.getMessage());
+        } finally {
+            JmsHelper.closeResource(sender);
+            JmsHelper.closeResource(session);
+            JmsHelper.closeResource(conn);
+        }
+    }
 }

File src/java/org/quartz/jobs/ee/jms/SendTopicMessageJob.java

  */
 package org.quartz.jobs.ee.jms;
 
-import org.quartz.*;
-
-import javax.jms.*;
+import javax.jms.JMSException;
+import javax.jms.Message;
+import javax.jms.Session;
+import javax.jms.Topic;
+import javax.jms.TopicConnection;
+import javax.jms.TopicConnectionFactory;
+import javax.jms.TopicPublisher;
+import javax.jms.TopicSession;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
 
+import org.quartz.Job;
+import org.quartz.JobDataMap;
+import org.quartz.JobDetail;
+import org.quartz.JobExecutionContext;
+import org.quartz.JobExecutionException;
+
 /**
 * <p>
 * A <code>Job</code> that sends a <code>javax.jms.Message</code> to a 
 */
 public class SendTopicMessageJob implements Job {
 
-	public void execute(JobExecutionContext context)
-			throws JobExecutionException {
+    public void execute(JobExecutionContext context)
+        throws JobExecutionException {
 
-		TopicConnectionFactory tcf = null;
-		TopicConnection connection = null;
-		TopicSession session = null;
-		Topic topic = null;
-		TopicPublisher publisher = null;
-		InitialContext ctx = null;
-		String user = null;
-		String pw = null;
+        TopicConnectionFactory tcf = null;
+        TopicConnection connection = null;
+        TopicSession session = null;
+        Topic topic = null;
+        TopicPublisher publisher = null;
+        InitialContext ctx = null;
+        String user = null;
+        String pw = null;
 
-		final JobDetail detail = context.getJobDetail();
-		final JobDataMap jobDataMap = detail.getJobDataMap();
+        final JobDetail detail = context.getJobDetail();
+        final JobDataMap jobDataMap = detail.getJobDataMap();
 
-		try {
+        try {
 
-			ctx = JmsHelper.getInitialContext(jobDataMap);
+            ctx = JmsHelper.getInitialContext(jobDataMap);
 
-			tcf = (TopicConnectionFactory) ctx
-					.lookup(JmsHelper.JMS_CONNECTION_FACTORY_JNDI);
+            tcf = (TopicConnectionFactory) ctx
+                    .lookup(JmsHelper.JMS_CONNECTION_FACTORY_JNDI);
 
-			if (JmsHelper.isDestinationSecure(jobDataMap)) {
+            if (JmsHelper.isDestinationSecure(jobDataMap)) {
 
-				user = jobDataMap.getString(JmsHelper.JMS_USER);
-				pw = jobDataMap.getString(JmsHelper.JMS_PASSWORD);
-				connection = tcf.createTopicConnection(user, pw);
+                user = jobDataMap.getString(JmsHelper.JMS_USER);
+                pw = jobDataMap.getString(JmsHelper.JMS_PASSWORD);
+                connection = tcf.createTopicConnection(user, pw);
 
-			} else {
-	
-				connection = tcf.createTopicConnection();
+            } else {
+    
+                connection = tcf.createTopicConnection();
 
-			}
+            }
 
-			session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
-			topic = (Topic) ctx.lookup(JmsHelper.JMS_DESTINATION_JNDI);
-			publisher = session.createPublisher(topic);
-			String factoryClassName = jobDataMap.getString(JmsHelper.JMS_MSG_FACTORY_CLASS_NAME);
-			JmsMessageFactory factory = JmsHelper.getMessageFactory(factoryClassName);
-			Message m = factory.createMessage(jobDataMap, session);
-			publisher.publish(m);
+            session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
+            topic = (Topic) ctx.lookup(JmsHelper.JMS_DESTINATION_JNDI);
+            publisher = session.createPublisher(topic);
+            String factoryClassName = jobDataMap.getString(JmsHelper.JMS_MSG_FACTORY_CLASS_NAME);
+            JmsMessageFactory factory = JmsHelper.getMessageFactory(factoryClassName);
+            Message m = factory.createMessage(jobDataMap, session);
+            publisher.publish(m);
 
-		} catch (NamingException e) {
+        } catch (NamingException e) {
 
-			throw new JobExecutionException(e);
+            throw new JobExecutionException(e);
 
-		} catch (JMSException e) {
+        } catch (JMSException e) {
 
-			throw new JobExecutionException(e);
+            throw new JobExecutionException(e);
 
-		} catch (JmsJobException e) {
+        } catch (JmsJobException e) {
 
-			throw new JobExecutionException(e);
+            throw new JobExecutionException(e);
 
-		} finally {
+        } finally {
 
-			JmsHelper.closeResource(publisher);
-			JmsHelper.closeResource(session);
-			JmsHelper.closeResource(connection);
+            JmsHelper.closeResource(publisher);
+            JmsHelper.closeResource(session);
+            JmsHelper.closeResource(connection);
 
-		}
+        }
 
-	}
+    }
 
 }

File src/java/org/quartz/simpl/RAMJobStore.java

  */
 package org.quartz.simpl;
 
+import java.util.ArrayList;
+import java.util.Comparator;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.Set;
+import java.util.TreeSet;
+
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.quartz.Calendar;
-import org.quartz.*;
+import org.quartz.JobDataMap;
+import org.quartz.JobDetail;
+import org.quartz.JobPersistenceException;
+import org.quartz.ObjectAlreadyExistsException;
+import org.quartz.SchedulerException;
+import org.quartz.Trigger;
 import org.quartz.core.SchedulingContext;
 import org.quartz.spi.ClassLoadHelper;
 import org.quartz.spi.JobStore;
 import org.quartz.spi.SchedulerSignaler;
 import org.quartz.spi.TriggerFiredBundle;
 
-import java.util.*;
-
 /**
  * <p>
  * This class implements a <code>{@link org.quartz.spi.JobStore}</code> that