Skip to content

Commit

Permalink
kennytv.dmg
Browse files Browse the repository at this point in the history
  • Loading branch information
JRoy committed Nov 8, 2022
1 parent 5edbc5e commit faab19b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ public ProviderFactory(final Essentials essentials) {
}

public <P extends Provider> P get(final Class<P> providerClass) {
if (!this.providers.containsKey(providerClass)) {
final Provider provider = providers.get(providerClass);
if (provider == null) {
return null;
}
//noinspection unchecked
return (P) providers.get(providerClass);
return (P) provider;
}

@SafeVarargs
Expand Down

0 comments on commit faab19b

Please sign in to comment.