Skip to content

Revise the test code to audit the second revision based on e1fafcc0#13

Merged
TonyTangAndroid merged 1 commit intomainfrom
v2
Aug 11, 2025
Merged

Revise the test code to audit the second revision based on e1fafcc0#13
TonyTangAndroid merged 1 commit intomainfrom
v2

Conversation

@TonyTangAndroid
Copy link
Owner

No description provided.

Copy link
Owner Author

@TonyTangAndroid TonyTangAndroid left a comment

Choose a reason for hiding this comment

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

@rysh88

uber#269

This is my delta changes of code generation after our last sycn. Based on my best knowledge examining from generated code, I do not see any other flags. I would approve your pull request if I have the permission.

Thank you for the dedicated work.

Comment on lines -39 to -41
if (_bar == Initialized.INITIALIZED) {
return null;
}
Copy link
Owner Author

Choose a reason for hiding this comment

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

Now those unnecessary code has been deleted

Comment on lines +34 to +36
if (_bar == null) {
throw new NullPointerException("Factory method cannot return null");
}
Copy link
Owner Author

Choose a reason for hiding this comment

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

It is motif spec that null is not supported in factory method

Copy link

Choose a reason for hiding this comment

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

We can return null if we don't have the null annotation.

@TonyTangAndroid TonyTangAndroid merged commit e307101 into main Aug 11, 2025
0 of 2 checks passed
@TonyTangAndroid TonyTangAndroid deleted the v2 branch August 11, 2025 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants