Revert "NO-JIRA Fix compiler warning in FederationStreamConnectMessage"

This reverts commit 9fe17d40
This commit is contained in:
Francesco Nigro 2020-02-02 14:43:18 +01:00 committed by Clebert Suconic
parent ee592d1d77
commit 09fe47884b
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}