mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 08:05:34 +00:00
exit out early and continue if no annotations are found
Differential Revision: D4742299 fbshipit-source-id: 8006c5c9b25c951aec12ad5c63fdaf03fe1f6e67
This commit is contained in:
parent
b3be5743e9
commit
2f69c5f46c
@ -80,11 +80,15 @@ public class ReactModuleSpecProcessor extends AbstractProcessor {
|
||||
ReactModuleList.class);
|
||||
for (Element reactModuleListElement : reactModuleListElements) {
|
||||
TypeElement typeElement = (TypeElement) reactModuleListElement;
|
||||
ReactModuleList reactModuleList = typeElement.getAnnotation(ReactModuleList.class);
|
||||
if (reactModuleList == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
ClassName className = ClassName.get(typeElement);
|
||||
String packageName = ClassName.get(typeElement).packageName();
|
||||
String fileName = className.simpleName();
|
||||
|
||||
ReactModuleList reactModuleList = typeElement.getAnnotation(ReactModuleList.class);
|
||||
List<String> nativeModules = new ArrayList<>();
|
||||
try {
|
||||
reactModuleList.nativeModules(); // throws MirroredTypesException
|
||||
|
Loading…
x
Reference in New Issue
Block a user