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

[Dubbo]Fix: Collections.emptyList() is final #14899

Merged
merged 2 commits into from
Nov 16, 2024

Conversation

paradiseidler
Copy link
Contributor

What is the purpose of the change?

Fix #14895 What the Collections.emptyList( ) return is final.

Checklist

  • Make sure there is a GitHub_issue field for the change.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
  • Make sure gitHub actions can pass. Why the workflow is failing and how to fix it?

@@ -138,7 +138,7 @@ public static List<Locale> parseAcceptLanguage(String header) {
public static List<Locale> parseContentLanguage(String header) {
List<Locale> locales = new ArrayList<>();
if (header == null) {
Copy link
Collaborator

@oxsean oxsean Nov 16, 2024

Choose a reason for hiding this comment

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

Can you move this line to line 143? This will avoid creating unnecessary objects

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK

@oxsean oxsean merged commit 7df5a89 into apache:3.3 Nov 16, 2024
19 of 30 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.

[Bug] org.apache.dubbo.remoting.http12.message.DefaultHttpRequest locales()
2 participants