rename javaModules -> nativeModules

Reviewed By: AaaChiuuu

Differential Revision: D4631758

fbshipit-source-id: 3b62ada1bf32467b67cd8529d4b7873b43898ee4
This commit is contained in:
Marc Horowitz
2017-03-14 15:28:55 -07:00
committed by Facebook Github Bot
parent e622d51e20
commit 87137cadd7
3 changed files with 5 additions and 5 deletions

View File

@@ -19,10 +19,10 @@ import static java.lang.annotation.RetentionPolicy.SOURCE;
public @interface ReactModuleList {
/**
* The Java modules in this list should be annotated with {@link ReactModule}.
* @return List of Java modules in the package.
* The Native modules in this list should be annotated with {@link ReactModule}.
* @return List of Native modules in the package.
*/
Class<? extends NativeModule>[] javaModules();
Class<? extends NativeModule>[] nativeModules();
/**
* The View Managers in this list should be annotated with {@link ReactModule}.

View File

@@ -87,7 +87,7 @@ public class ReactModuleSpecProcessor extends AbstractProcessor {
ReactModuleList reactModuleList = typeElement.getAnnotation(ReactModuleList.class);
List<String> nativeModules = new ArrayList<>();
try {
reactModuleList.javaModules(); // throws MirroredTypesException
reactModuleList.nativeModules(); // throws MirroredTypesException
} catch (MirroredTypesException mirroredTypesException) {
List<? extends TypeMirror> typeMirrors = mirroredTypesException.getTypeMirrors();
for (TypeMirror typeMirror : typeMirrors) {