private static Bundle getArguments()

in src/main/java/com/microsoft/appcenter/espresso/Factory.java [36:57]


    private static Bundle getArguments() {
        for (String location: locations) {
            try {
                Class<?> aClass = Class.forName(location);
                Method getArguments = aClass.getMethod("getArguments", (Class[]) null);
                return (Bundle) getArguments.invoke(null, (Object[]) null);
                // We need to support api level 8 and up, so we cannot combine catches into on
            } catch (IllegalStateException e) {
                String msg = String.format("Unable to find arguments in {0}, trying next \"global\" Registry", location);
                Log.d(TAG, msg);
            } catch (ClassNotFoundException e) {
                // Ignore
            } catch (NoSuchMethodException e) {
                // Ignore
            } catch (IllegalAccessException e) {
                // Ignore
            } catch (InvocationTargetException e) {
                // Ignore
            }
        }
        return new Bundle();
    }