Skip to content

Fix MissingOverrideAnnotation: Add @Override to YogaNodeJNIBase methods (#1918)#1918

Closed
mdvacca wants to merge 1 commit into
react:mainfrom
mdvacca:export-D95413075
Closed

Fix MissingOverrideAnnotation: Add @Override to YogaNodeJNIBase methods (#1918)#1918
mdvacca wants to merge 1 commit into
react:mainfrom
mdvacca:export-D95413075

Conversation

@mdvacca

@mdvacca mdvacca commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

Summary:

X-link: facebook/react-native#56040

Fixed 101 MissingOverrideAnnotation lint errors in YogaNodeJNIBase.java.

Added Override annotation to all public methods that override abstract methods from the YogaNode superclass but were missing the annotation. This includes style getters/setters (direction, flex, margin, padding, border, position, width, height, min/max dimensions, aspect ratio, gap), layout methods (reset, calculateLayout, dirty), tree manipulation (addChildAt, removeChildAt, indexOf), and measurement/baseline functions.

Changelog: [Internal] internal

Reviewed By: cortinico

Differential Revision: D95413075

@meta-cla meta-cla Bot added the CLA Signed label Mar 12, 2026
@vercel

vercel Bot commented Mar 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
yoga-website Ready Ready Preview, Comment Apr 6, 2026 5:35pm

Request Review

@cortinico cortinico left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@mdvacca mdvacca force-pushed the export-D95413075 branch from df34ca3 to a308fa3 Compare April 6, 2026 17:29
@meta-codesync

meta-codesync Bot commented Apr 6, 2026

Copy link
Copy Markdown

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

…ds (facebook#1918)

Summary:
Pull Request resolved: facebook#1918

X-link: facebook/react-native#56040

Fixed 101 MissingOverrideAnnotation lint errors in YogaNodeJNIBase.java.

Added Override annotation to all public methods that override abstract methods from the YogaNode superclass but were missing the annotation. This includes style getters/setters (direction, flex, margin, padding, border, position, width, height, min/max dimensions, aspect ratio, gap), layout methods (reset, calculateLayout, dirty), tree manipulation (addChildAt, removeChildAt, indexOf), and measurement/baseline functions.

Changelog: [Internal] internal

Reviewed By: cortinico

Differential Revision: D95413075
@meta-codesync meta-codesync Bot changed the title Fix MissingOverrideAnnotation: Add @Override to YogaNodeJNIBase methods Fix MissingOverrideAnnotation: Add @Override to YogaNodeJNIBase methods (#1918) Apr 6, 2026
@mdvacca mdvacca force-pushed the export-D95413075 branch from a308fa3 to 493c508 Compare April 6, 2026 17:33
meta-codesync Bot pushed a commit to react/react-native that referenced this pull request Apr 6, 2026
…ds (#56040)

Summary:
X-link: react/yoga#1918

Pull Request resolved: #56040

Fixed 101 MissingOverrideAnnotation lint errors in YogaNodeJNIBase.java.

Added Override annotation to all public methods that override abstract methods from the YogaNode superclass but were missing the annotation. This includes style getters/setters (direction, flex, margin, padding, border, position, width, height, min/max dimensions, aspect ratio, gap), layout methods (reset, calculateLayout, dirty), tree manipulation (addChildAt, removeChildAt, indexOf), and measurement/baseline functions.

Changelog: [Internal] internal

Reviewed By: cortinico

Differential Revision: D95413075

fbshipit-source-id: fc148c8aefe734c090541b6eb02815c1446d2e98
@meta-codesync meta-codesync Bot closed this in 110ca9e Apr 6, 2026
@meta-codesync

meta-codesync Bot commented Apr 6, 2026

Copy link
Copy Markdown

This pull request has been merged in 110ca9e.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants