Polishing Javadoc and suppressing warnings.

master
Sam Brannen 13 years ago
parent a94e3785b8
commit 84ff2b49a6
  1. 4
      org.springframework.jms/src/main/java/org/springframework/jms/listener/AbstractMessageListenerContainer.java

@ -489,6 +489,7 @@ public abstract class AbstractMessageListenerContainer extends AbstractJmsListen
* @throws JMSException if thrown by JMS API methods * @throws JMSException if thrown by JMS API methods
* @see #setMessageListener * @see #setMessageListener
*/ */
@SuppressWarnings("rawtypes")
protected void invokeListener(Session session, Message message) throws JMSException { protected void invokeListener(Session session, Message message) throws JMSException {
Object listener = getMessageListener(); Object listener = getMessageListener();
if (listener instanceof SessionAwareMessageListener) { if (listener instanceof SessionAwareMessageListener) {
@ -517,7 +518,7 @@ public abstract class AbstractMessageListenerContainer extends AbstractJmsListen
* @see SessionAwareMessageListener * @see SessionAwareMessageListener
* @see #setExposeListenerSession * @see #setExposeListenerSession
*/ */
@SuppressWarnings("unchecked") @SuppressWarnings({ "unchecked", "rawtypes" })
protected void doInvokeListener(SessionAwareMessageListener listener, Session session, Message message) protected void doInvokeListener(SessionAwareMessageListener listener, Session session, Message message)
throws JMSException { throws JMSException {
@ -700,6 +701,7 @@ public abstract class AbstractMessageListenerContainer extends AbstractJmsListen
* Internal exception class that indicates a rejected message on shutdown. * Internal exception class that indicates a rejected message on shutdown.
* Used to trigger a rollback for an external transaction manager in that case. * Used to trigger a rollback for an external transaction manager in that case.
*/ */
@SuppressWarnings("serial")
private static class MessageRejectedWhileStoppingException extends RuntimeException { private static class MessageRejectedWhileStoppingException extends RuntimeException {
} }

Loading…
Cancel
Save