Collapse catch blocks in template (#34379)

Summary:
Collapse catch blocks in template

## Changelog

[Android] [Changed] - Collapse catch blocks in template

Pull Request resolved: https://github.com/facebook/react-native/pull/34379

Test Plan: No test plan required.

Reviewed By: cortinico

Differential Revision: D38593529

Pulled By: makovkastar

fbshipit-source-id: a26b00d88421f3e9201f98aabbc8a1b43159c208
This commit is contained in:
Danilo Bürger 2022-08-10 22:46:26 -07:00 коммит произвёл Facebook GitHub Bot
Родитель e532f861ec
Коммит a379879adf
1 изменённых файлов: 4 добавлений и 7 удалений

Просмотреть файл

@ -77,13 +77,10 @@ public class MainApplication extends Application implements ReactApplication {
aClass aClass
.getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
.invoke(null, context, reactInstanceManager); .invoke(null, context, reactInstanceManager);
} catch (ClassNotFoundException e) { } catch (ClassNotFoundException
e.printStackTrace(); | InvocationTargetException
} catch (NoSuchMethodException e) { | IllegalAccessException
e.printStackTrace(); | NoSuchMethodException e) {
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace(); e.printStackTrace();
} }
} }