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

Add @FunctionalInterface for some interface #1048

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

karsonto
Copy link
Contributor

Motivation:

Explain the context, and why you're making that change.
To make others understand what is the problem you're trying to solve.

Modification:

Describe the idea and modifications you've done.

Result:

Fixes #.

If there is no issue then describe the changes introduced by this PR.

@fengjiachun
Copy link
Contributor

Thank you for the pull request @karsonto , we need to explain the benefits of doing this, making it easy for everyone to understand. So, can you give a simple introduction to the advantages of FunctionalInterface?

Copy link
Contributor

@fengjiachun fengjiachun left a comment

Choose a reason for hiding this comment

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

LGTM

@karsonto
Copy link
Contributor Author

karsonto commented Jan 5, 2024

@fengjiachun After with the @FunctionalInterface annotation, the interface can use lambda to simplify code and optimize performance.

@fengjiachun fengjiachun merged commit 5a4d234 into sofastack:master Jan 5, 2024
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