Skip to content

Commit

Permalink
Revert D48588376: reduce visibility of getNativeModuleIterator
Browse files Browse the repository at this point in the history
Differential Revision:
D48588376

Original commit changeset: 6cbff90a4c51

Original Phabricator Diff: D48588376

fbshipit-source-id: 79b481b9784709e20074cda2d16605369568fc84
  • Loading branch information
Ergul Azizler authored and facebook-github-bot committed Aug 25, 2023
1 parent e7168c4 commit a0a544f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,15 @@ public static ReactModuleInfoProvider getReactModuleInfoProviderViaReflection(
LazyReactPackage lazyReactPackage) {
return Collections::emptyMap;
}

/**
* We return an iterable
*
* @param reactContext context
* @return {@link Iterable<ModuleHolder>} that contains all native modules registered for the
* context
*/
/** package */
Iterable<ModuleHolder> getNativeModuleIterator(final ReactApplicationContext reactContext) {
public Iterable<ModuleHolder> getNativeModuleIterator(
final ReactApplicationContext reactContext) {
final Map<String, ReactModuleInfo> reactModuleInfoMap =
getReactModuleInfoProvider().getReactModuleInfos();
final List<ModuleSpec> nativeModules = getNativeModules(reactContext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ public class ReactPackageHelper {
* @param reactInstanceManager
* @return
*/
/** package */
static Iterable<ModuleHolder> getNativeModuleIterator(
public static Iterable<ModuleHolder> getNativeModuleIterator(
ReactPackage reactPackage,
ReactApplicationContext reactApplicationContext,
ReactInstanceManager reactInstanceManager) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public List<NativeModule> createNativeModules(ReactApplicationContext reactConte
* @param reactContext
* @return
*/
/** package */
Iterable<ModuleHolder> getNativeModuleIterator(final ReactApplicationContext reactContext) {
public Iterable<ModuleHolder> getNativeModuleIterator(
final ReactApplicationContext reactContext) {
final Set<Map.Entry<String, ReactModuleInfo>> entrySet =
getReactModuleInfoProvider().getReactModuleInfos().entrySet();
final Iterator<Map.Entry<String, ReactModuleInfo>> entrySetIterator = entrySet.iterator();
Expand Down

0 comments on commit a0a544f

Please sign in to comment.