Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Java] replace withSecureMode by requireClassRegistration API #768

Merged
merged 12 commits into from
Jul 26, 2023

Conversation

chaokunyang
Copy link
Collaborator

@chaokunyang chaokunyang commented Jul 26, 2023

What do these changes do?

remove requireClassRegistration API

Related issue number

Closes #769

Check code requirements

  • tests added / passed (if needed)
  • Ensure all linting tests pass, see here for how to run them

@chaokunyang
Copy link
Collaborator Author

@tisonkun Could you help review this PR?

Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

While withSecureMode(false) is vague and even ambiguous, is it possible with use requireClassRegistration to replace all the usage of withSecureMode instead and document requireClassRegistration(false)'s safety requirement (i.e., "your environment is indeed secure")?

I don't know if withSecureMode has other meaning - it reads vague and ambiguous to me. Here we can expose the real effect requireClassRegistration that is not an internal concept but what users modify the option need to know.

@chaokunyang
Copy link
Collaborator Author

Good suggestion, withSecureMode did read vague and ambiguous, it didn't show what it does.

@chaokunyang chaokunyang changed the title [Java] remove requireClassRegistration API [Java] replace withSecureMode by requireClassRegistration API Jul 26, 2023
Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

LGTM. One comment inline that can be improved later.

docs/guide/java_object_graph_guide.md Outdated Show resolved Hide resolved
@chaokunyang chaokunyang force-pushed the remove_require_class_registration branch from 050d731 to ebef6de Compare July 26, 2023 15:19
@chaokunyang chaokunyang merged commit ff3d5ad into apache:main Jul 26, 2023
10 checks passed
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.

[RFC][Java] remove FuryBuilder#withSecureMode API
2 participants