Permalink
Browse files

Fix ClassCastException in ReactModuleSpecProcessor

Reviewed By: AaaChiuuu

Differential Revision: D4752195

fbshipit-source-id: 7c01f9be4d82dbc605f1e6d3b217f0c83f177165
  • Loading branch information...
Jonathan Lawlor authored and facebook-github-bot committed Mar 22, 2017
1 parent ef3db66 commit 379b60d5e8a2418f438e4291bf5ba140778db5bc
@@ -79,6 +79,10 @@ public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment
Set<? extends Element> reactModuleListElements = roundEnv.getElementsAnnotatedWith(
ReactModuleList.class);
for (Element reactModuleListElement : reactModuleListElements) {
if (!(reactModuleListElement instanceof TypeElement)) {
continue;
}
TypeElement typeElement = (TypeElement) reactModuleListElement;
ReactModuleList reactModuleList = typeElement.getAnnotation(ReactModuleList.class);
if (reactModuleList == null) {

0 comments on commit 379b60d

Please sign in to comment.