Revert "NO-JIRA Fix compiler warning in FederationStreamConnectMessage"
This reverts commit 9fe17d40
This commit is contained in:
parent
ee592d1d77
commit
09fe47884b
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue