Skip to content

Fix MissingOverrideAnnotation: Add @Override to YogaNodeJNIBase methods#56040

Open
mdvacca wants to merge 1 commit intofacebook:mainfrom
mdvacca:export-D95413075
Open

Fix MissingOverrideAnnotation: Add @Override to YogaNodeJNIBase methods#56040
mdvacca wants to merge 1 commit intofacebook:mainfrom
mdvacca:export-D95413075

Conversation

@mdvacca
Copy link
Contributor

@mdvacca mdvacca commented Mar 10, 2026

Summary:
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

Differential Revision: D95413075

@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 Mar 10, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 10, 2026

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

Copy link
Contributor

@cortinico cortinico left a comment

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 added a commit to mdvacca/yoga that referenced this pull request Mar 12, 2026
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
…ds (facebook#56040)

Summary:

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
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 meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants