-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Refine parameter and field names to align with PageRequest
property names
#2882
Refine parameter and field names to align with PageRequest
property names
#2882
Conversation
We mix using page with pageNumber, size with pageSize and sometimes, it makes me confused. And I think pageNumber and pageSize are more clearer. Feel free to close this if there is a reason or we can not change it.
*/ | ||
public AbstractPageRequest(int page, int size) { | ||
protected AbstractPageRequest(int pageNumber, int pageSize) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not change visibility. I'm going to revert this change upon merge.
@@ -36,13 +37,13 @@ public class PageRequest extends AbstractPageRequest { | |||
/** | |||
* Creates a new {@link PageRequest} with sort parameters applied. | |||
* | |||
* @param page zero-based page index, must not be negative. | |||
* @param size the size of the page to be returned, must be greater than 0. | |||
* @param pageNumber zero-based pageNumber index, must not be negative. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, seems too much was changed by the refactoring. I'll align these upon merge.
PageRequest
property names
Tweak Javadoc wording, revert visibility changes, add missing Override annotations. See #2882
… names. Align parameter naming with properties to not mix using page with pageNumber, size with pageSize names. Closes #2882
Tweak Javadoc wording, revert visibility changes, add missing Override annotations. See #2882
… names. Align parameter naming with properties to not mix using page with pageNumber, size with pageSize names. Closes #2882
Tweak Javadoc wording, revert visibility changes, add missing Override annotations. See #2882
Thank you for your contribution. That's merged, polished, and backported now. |
Hi @mp911de, I think we need to update the release note for Spring Data 2022.0 at https://github.com/spring-projects/spring-data-commons/wiki/Spring-Data-2022.0-(Turing)-Release-Notes, somehow I did not find it there when I was upgrading my service to Spring Boot 3. I think this commit should be considered as breaking change since it may affect many user especially for a downstream service. Wdyt? 🙇 |
We mix using page with pageNumber, size with pageSize and sometimes, it makes me confused. And I think pageNumber and pageSize are more clearer. Feel free to close this if there is a reason or we can not change it.