activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [5/8] activemq-artemis git commit: Unnecessary @SuppressWarnings fixes
Date Thu, 25 Aug 2016 18:22:47 GMT
Unnecessary @SuppressWarnings fixes


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/30c617da
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/30c617da
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/30c617da

Branch: refs/heads/master
Commit: 30c617da3c14885b3a81732e23c42889387a3f8b
Parents: 601ab12
Author: Ville Skyttä <ville.skytta@iki.fi>
Authored: Thu Aug 25 12:07:24 2016 +0300
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Thu Aug 25 14:22:32 2016 -0400

----------------------------------------------------------------------
 .../org/apache/activemq/artemis/jms/client/ActiveMQMessage.java   | 3 +--
 .../apache/activemq/artemis/jms/client/ActiveMQObjectMessage.java | 2 +-
 .../apache/activemq/artemis/jms/client/ActiveMQStreamMessage.java | 1 -
 .../artemis/core/protocol/proton/converter/ActiveMQJMSVendor.java | 1 -
 .../activemq/artemis/ra/ActiveMQRAManagedConnectionFactory.java   | 2 +-
 .../java/org/apache/activemq/artemis/ra/ActiveMQRAMapMessage.java | 1 -
 .../java/org/apache/activemq/artemis/ra/ActiveMQRAMessage.java    | 3 +--
 .../org/apache/activemq/transport/tcp/TcpTransportFactory.java    | 1 -
 8 files changed, 4 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/30c617da/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java
----------------------------------------------------------------------
diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java
b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java
index ab9e311..78acdb7 100644
--- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java
+++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQMessage.java
@@ -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>

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/30c617da/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQObjectMessage.java
----------------------------------------------------------------------
diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQObjectMessage.java
b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQObjectMessage.java
index 0e6bbda..a149dbd 100644
--- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQObjectMessage.java
+++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQObjectMessage.java
@@ -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 {

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/30c617da/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQStreamMessage.java
----------------------------------------------------------------------
diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQStreamMessage.java
b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQStreamMessage.java
index 4b3f5c3..1c7772c 100644
--- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQStreamMessage.java
+++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQStreamMessage.java
@@ -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;

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/30c617da/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/proton/converter/ActiveMQJMSVendor.java
----------------------------------------------------------------------
diff --git a/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/proton/converter/ActiveMQJMSVendor.java
b/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/proton/converter/ActiveMQJMSVendor.java
index ed887cf..3cfb0a5 100644
--- a/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/proton/converter/ActiveMQJMSVendor.java
+++ b/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/proton/converter/ActiveMQJMSVendor.java
@@ -81,7 +81,6 @@ public class ActiveMQJMSVendor implements JMSVendor {
    }
 
    @Override
-   @SuppressWarnings("deprecation")
    public Destination createDestination(String name) {
       return new ServerDestination(name);
    }

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/30c617da/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAManagedConnectionFactory.java
----------------------------------------------------------------------
diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAManagedConnectionFactory.java
b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAManagedConnectionFactory.java
index 73b443f..a3e5f4c 100644
--- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAManagedConnectionFactory.java
+++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAManagedConnectionFactory.java
@@ -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) {

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/30c617da/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAMapMessage.java
----------------------------------------------------------------------
diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAMapMessage.java
b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAMapMessage.java
index c22cc8d..0b2cb61 100644
--- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAMapMessage.java
+++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAMapMessage.java
@@ -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()");

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/30c617da/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAMessage.java
----------------------------------------------------------------------
diff --git a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAMessage.java
b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAMessage.java
index 7872459..d060009 100644
--- a/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAMessage.java
+++ b/artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAMessage.java
@@ -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 + ")");
       }

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/30c617da/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/transport/tcp/TcpTransportFactory.java
----------------------------------------------------------------------
diff --git a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/transport/tcp/TcpTransportFactory.java
b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/transport/tcp/TcpTransportFactory.java
index a81f9aa..1d10280 100644
--- a/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/transport/tcp/TcpTransportFactory.java
+++ b/tests/activemq5-unit-tests/src/main/java/org/apache/activemq/transport/tcp/TcpTransportFactory.java
@@ -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);


Mime
View raw message