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

View File

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

View File

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

View File

@ -81,7 +81,6 @@ public class ActiveMQJMSVendor implements JMSVendor {
}
@Override
@SuppressWarnings("deprecation")
public Destination createDestination(String 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
*/
@Override
public ManagedConnection matchManagedConnections(@SuppressWarnings("rawtypes") final Set connectionSet,
public ManagedConnection matchManagedConnections(final Set connectionSet,
final Subject subject,
final ConnectionRequestInfo cxRequestInfo) throws ResourceException {
if (ActiveMQRAManagedConnectionFactory.trace) {

View File

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

View File

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

View File

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