File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed
src/main/java/org/cryptomator/integrations/common Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -74,15 +74,10 @@ private static <T> Stream<T> instantiateServiceProvider(ServiceLoader.Provider<T
7474 return Stream .of (provider .get ());
7575 } catch (ServiceConfigurationError err ) {
7676 //ServiceLoader.Provider::get throws this error if (from javadoc)
77- if (err .getCause () == null || //the public static "provider()" method of a provider factory returns null
78- err .getCause () instanceof ExceptionInInitializerError || // * the service provider cannot be instantiated,
79- err .getCause () instanceof NoClassDefFoundError ||
80- err .getCause () instanceof RuntimeException ) {
81- LOG .warn ("Unable to load service provider {}." , provider .type ().getName (), err );
82- return Stream .empty ();
83- } else {
84- throw err ;
85- }
77+ // * the public static "provider()" method of a provider factory returns null
78+ // * the service provider cannot be instantiated due to an error/throw
79+ LOG .warn ("Unable to load service provider {}." , provider .type ().getName (), err );
80+ return Stream .empty ();
8681 }
8782 }
8883
You can’t perform that action at this time.
0 commit comments