Skip to content

Migrate NativeViewHierarchyManager from Java to Kotlin (#56828)#56828

Closed
cortinico wants to merge 1 commit into
facebook:mainfrom
cortinico:export-D104999732
Closed

Migrate NativeViewHierarchyManager from Java to Kotlin (#56828)#56828
cortinico wants to merge 1 commit into
facebook:mainfrom
cortinico:export-D104999732

Conversation

@cortinico
Copy link
Copy Markdown
Contributor

@cortinico cortinico commented May 14, 2026

Summary:

Mechanical migration of the deprecated NativeViewHierarchyManager stub class from Java to Kotlin. All methods remain empty stubs — no behavioral changes.

Key migration decisions:

  • Class marked open to preserve subclassability from Java/Kotlin
  • All non-final public/protected methods marked open to match Java virtual-by-default
  • resolveView and resolveViewManager remain final (matching the Java original)
  • Nullable return types converted to Kotlin nullable types (?)
  • synchronized methods use Synchronized annotation
  • Static initializer converted to companion object init block

Changelog:
[Internal]

Reviewed By: christophpurrer

Differential Revision: D104999732

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 14, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 14, 2026

@cortinico has exported this pull request. If you are a Meta employee, you can view the originating Diff in D104999732.

@cortinico cortinico force-pushed the export-D104999732 branch from 14f8c12 to 15bbd41 Compare May 18, 2026 10:33
@meta-codesync meta-codesync Bot changed the title Migrate NativeViewHierarchyManager from Java to Kotlin Migrate NativeViewHierarchyManager from Java to Kotlin (#56828) May 20, 2026
@cortinico cortinico force-pushed the export-D104999732 branch from 15bbd41 to b845b54 Compare May 20, 2026 10:32
cortinico added a commit to cortinico/react-native that referenced this pull request May 20, 2026
Summary:
Pull Request resolved: facebook#56828

Mechanical migration of the deprecated `NativeViewHierarchyManager` stub class from Java to Kotlin. All methods remain empty stubs — no behavioral changes.

Key migration decisions:
- Class marked `open` to preserve subclassability from Java/Kotlin
- All non-final public/protected methods marked `open` to match Java virtual-by-default
- `resolveView` and `resolveViewManager` remain `final` (matching the Java original)
- `Nullable` return types converted to Kotlin nullable types (`?`)
- `synchronized` methods use `Synchronized` annotation
- Static initializer converted to companion object `init` block

Changelog:
[Internal]

Reviewed By: christophpurrer

Differential Revision: D104999732
@react-native-bot react-native-bot added the Merged This PR has been merged. label May 20, 2026
@cortinico cortinico removed the Merged This PR has been merged. label May 20, 2026
@facebook facebook deleted a comment from react-native-bot May 20, 2026
cortinico added a commit to cortinico/react-native that referenced this pull request May 20, 2026
Summary:
Pull Request resolved: facebook#56828

Mechanical migration of the deprecated `NativeViewHierarchyManager` stub class from Java to Kotlin. All methods remain empty stubs — no behavioral changes.

Key migration decisions:
- Class marked `open` to preserve subclassability from Java/Kotlin
- All non-final public/protected methods marked `open` to match Java virtual-by-default
- `resolveView` and `resolveViewManager` remain `final` (matching the Java original)
- `Nullable` return types converted to Kotlin nullable types (`?`)
- `synchronized` methods use `Synchronized` annotation
- Static initializer converted to companion object `init` block

Changelog:
[Internal]

Reviewed By: christophpurrer

Differential Revision: D104999732
@cortinico cortinico force-pushed the export-D104999732 branch from b845b54 to 7230c87 Compare May 20, 2026 12:59
Summary:
Pull Request resolved: facebook#56828

Mechanical migration of the deprecated `NativeViewHierarchyManager` stub class from Java to Kotlin. All methods remain empty stubs — no behavioral changes.

Key migration decisions:
- Class marked `open` to preserve subclassability from Java/Kotlin
- All non-final public/protected methods marked `open` to match Java virtual-by-default
- `resolveView` and `resolveViewManager` remain `final` (matching the Java original)
- `Nullable` return types converted to Kotlin nullable types (`?`)
- `synchronized` methods use `Synchronized` annotation
- Static initializer converted to companion object `init` block

Changelog:
[Internal]

Reviewed By: christophpurrer

Differential Revision: D104999732
@cortinico cortinico force-pushed the export-D104999732 branch from 7230c87 to 7617ba8 Compare May 20, 2026 13:10
@meta-codesync meta-codesync Bot closed this in c6dd6f9 May 20, 2026
@facebook-github-tools facebook-github-tools Bot added the Merged This PR has been merged. label May 20, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented May 20, 2026

This pull request has been merged in c6dd6f9.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @cortinico in c6dd6f9

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants