This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git


The following commit(s) were added to refs/heads/master by this push:
     new 09fe478  Revert "NO-JIRA Fix compiler warning in 
FederationStreamConnectMessage"
     new 4172ffe  This closes #2968
09fe478 is described below

commit 09fe47884bd168aa78445d8b780fef8341a2f298
Author: Francesco Nigro <[email protected]>
AuthorDate: Sun Feb 2 14:43:18 2020 +0100

    Revert "NO-JIRA Fix compiler warning in FederationStreamConnectMessage"
    
    This reverts commit 9fe17d40
---
 .../protocol/core/impl/wireformat/FederationStreamConnectMessage.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/FederationStreamConnectMessage.java
 
b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/FederationStreamConnectMessage.java
index 14813b1..1b2a28d 100644
--- 
a/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/FederationStreamConnectMessage.java
+++ 
b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/protocol/core/impl/wireformat/FederationStreamConnectMessage.java
@@ -148,7 +148,7 @@ public abstract class FederationStreamConnectMessage <T 
extends FederationStream
 
    private FederationPolicy getFederationPolicy(String clazz) {
       try {
-         return (FederationPolicy) 
Class.forName(clazz).getConstructor((Class<?>) null).newInstance();
+         return (FederationPolicy) 
Class.forName(clazz).getConstructor(null).newInstance();
       } catch (Exception e) {
          throw new IllegalStateException("Error. Unable to instantiate 
FederationPolicy: " + e.getMessage(), e);
       }

Reply via email to