Unnecessary @SuppressWarnings fixes

This commit is contained in:
Ville Skyttä 2016-08-25 12:07:24 +03:00 committed by Clebert Suconic
parent 601ab120d6
commit 30c617da3c
8 changed files with 4 additions and 10 deletions

View File

@ -609,7 +609,6 @@ public class ActiveMQMessage implements javax.jms.Message {
return val; return val;
} }
@SuppressWarnings("rawtypes")
@Override @Override
public Enumeration getPropertyNames() throws JMSException { public Enumeration getPropertyNames() throws JMSException {
return Collections.enumeration(MessageUtil.getPropertyNames(message)); return Collections.enumeration(MessageUtil.getPropertyNames(message));
@ -771,7 +770,7 @@ public class ActiveMQMessage implements javax.jms.Message {
} }
@Override @Override
public boolean isBodyAssignableTo(@SuppressWarnings("rawtypes") Class c) { public boolean isBodyAssignableTo(Class c) {
/** /**
* From the specs: * From the specs:
* <p> * <p>

View File

@ -176,7 +176,7 @@ public class ActiveMQObjectMessage extends ActiveMQMessage implements ObjectMess
} }
@Override @Override
public boolean isBodyAssignableTo(@SuppressWarnings("rawtypes") Class c) { public boolean isBodyAssignableTo(Class c) {
if (data == null) // we have no body if (data == null) // we have no body
return true; return true;
try { try {

View File

@ -394,7 +394,6 @@ public final class ActiveMQStreamMessage extends ActiveMQMessage implements Stre
return message.getBodyBuffer(); return message.getBodyBuffer();
} }
@SuppressWarnings("rawtypes")
@Override @Override
public boolean isBodyAssignableTo(Class c) { public boolean isBodyAssignableTo(Class c) {
return false; return false;

View File

@ -81,7 +81,6 @@ public class ActiveMQJMSVendor implements JMSVendor {
} }
@Override @Override
@SuppressWarnings("deprecation")
public Destination createDestination(String name) { public Destination createDestination(String name) {
return new ServerDestination(name); return new ServerDestination(name);
} }

View File

@ -184,7 +184,7 @@ public final class ActiveMQRAManagedConnectionFactory implements ManagedConnecti
* @throws ResourceException Thrown if the managed connection can not be found * @throws ResourceException Thrown if the managed connection can not be found
*/ */
@Override @Override
public ManagedConnection matchManagedConnections(@SuppressWarnings("rawtypes") final Set connectionSet, public ManagedConnection matchManagedConnections(final Set connectionSet,
final Subject subject, final Subject subject,
final ConnectionRequestInfo cxRequestInfo) throws ResourceException { final ConnectionRequestInfo cxRequestInfo) throws ResourceException {
if (ActiveMQRAManagedConnectionFactory.trace) { if (ActiveMQRAManagedConnectionFactory.trace) {

View File

@ -181,7 +181,6 @@ public class ActiveMQRAMapMessage extends ActiveMQRAMessage implements MapMessag
* @throws JMSException Thrown if an error occurs * @throws JMSException Thrown if an error occurs
*/ */
@Override @Override
@SuppressWarnings("rawtypes")
public Enumeration getMapNames() throws JMSException { public Enumeration getMapNames() throws JMSException {
if (ActiveMQRAMapMessage.trace) { if (ActiveMQRAMapMessage.trace) {
ActiveMQRALogger.LOGGER.trace("getMapNames()"); ActiveMQRALogger.LOGGER.trace("getMapNames()");

View File

@ -384,7 +384,6 @@ public class ActiveMQRAMessage implements Message {
* @throws JMSException Thrown if an error occurs * @throws JMSException Thrown if an error occurs
*/ */
@Override @Override
@SuppressWarnings("rawtypes")
public Enumeration getPropertyNames() throws JMSException { public Enumeration getPropertyNames() throws JMSException {
if (ActiveMQRAMessage.trace) { if (ActiveMQRAMessage.trace) {
ActiveMQRALogger.LOGGER.trace("getPropertyNames()"); ActiveMQRALogger.LOGGER.trace("getPropertyNames()");
@ -776,7 +775,7 @@ public class ActiveMQRAMessage implements Message {
} }
@Override @Override
public boolean isBodyAssignableTo(@SuppressWarnings("rawtypes") Class c) throws JMSException { public boolean isBodyAssignableTo(Class c) throws JMSException {
if (ActiveMQRAMessage.trace) { if (ActiveMQRAMessage.trace) {
ActiveMQRALogger.LOGGER.trace("isBodyAssignableTo(" + c + ")"); ActiveMQRALogger.LOGGER.trace("isBodyAssignableTo(" + c + ")");
} }

View File

@ -108,7 +108,6 @@ public class TcpTransportFactory extends TransportFactory {
} }
@Override @Override
@SuppressWarnings("rawtypes")
public Transport compositeConfigure(Transport transport, WireFormat format, Map options) { public Transport compositeConfigure(Transport transport, WireFormat format, Map options) {
TcpTransport tcpTransport = transport.narrow(TcpTransport.class); TcpTransport tcpTransport = transport.narrow(TcpTransport.class);