This commit is contained in:
Christopher L. Shannon 2020-01-30 15:48:21 -05:00 committed by GitHub
commit edf1985fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(null).newInstance();
return (FederationPolicy) Class.forName(clazz).getConstructor((Class<?>) null).newInstance();
} catch (Exception e) {
throw new IllegalStateException("Error. Unable to instantiate FederationPolicy: " + e.getMessage(), e);
}