Skip to content

DATACMNS-1827 - Consider Qualifier meta-annotated Sort method parameters. #474

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

Closed
wants to merge 1 commit into from

Conversation

vpavic
Copy link
Contributor

@vpavic vpavic commented Nov 11, 2020

This is a follow-up on #473 that resolves DATACMNS-1827.

  • You have read the Spring Data contribution guidelines.
  • There is a ticket in the bug tracker for the project in our JIRA.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

@@ -293,6 +295,19 @@ static boolean notOnlyDots(String source) {
return StringUtils.hasText(source.replace(".", ""));
}

@Nullable
private static String getQualifier(@Nullable MethodParameter parameter) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mp911de, since this piece of code duplicates the equally named method from PageableHandlerMethodArgumentResolverSupport, we could consider moving it to some utility class.

Not sure whether SpringDataAnnotationUtils is the right place, due to its (possibly outdated) javadoc?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, it makes sense. I'll take care of this during the merge.

mp911de pushed a commit that referenced this pull request Dec 1, 2020
mp911de added a commit that referenced this pull request Dec 1, 2020
Extract qualifier lookup into SpringDataAnnotationUtils.

Original pull request: #474.
mp911de pushed a commit that referenced this pull request Dec 1, 2020
mp911de added a commit that referenced this pull request Dec 1, 2020
Extract qualifier lookup into SpringDataAnnotationUtils.

Original pull request: #474.
@mp911de
Copy link
Member

mp911de commented Dec 1, 2020

Thank you for your contribution. That's merged, polished, and backported now.

@mp911de mp911de closed this Dec 1, 2020
@vpavic vpavic deleted the DATACMNS-1827 branch December 1, 2020 09:57
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