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

Bring back old pre-2.7.0 methods and mark them as deprecated. #303

Merged
merged 1 commit into from
Oct 22, 2019

Conversation

ValCanBuild
Copy link
Collaborator

No description provided.

@@ -312,6 +312,15 @@ public int getItemCountForGroup(int groupIndex) {
return groups.get(groupIndex).getItemCount();
}

/**
* This returns the total number of items contained in the top level group at the passed index
* @deprecated This method has been deprecated in favour of {@link #getItemCountForGroup(int)}. Please use that method instead.

Choose a reason for hiding this comment

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

It would have been awesome if we had this file in Kotlin - we could have used the @ReplaceWith annotation like described here: https://hackernoon.com/how-kotlins-deprecated-relieves-pain-of-colossal-refactoring-8577545aaed.

This should work for now though!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes it would have indeed. I have explored converting the library to Kotlin but the benefit of a direct conversion isn't that great over just keeping it in Java. It'll be worth it more if we decide to do a larger API overhaul that leverages Kotlin features a lot more.

@ValCanBuild ValCanBuild merged commit 77a0c53 into master Oct 22, 2019
@ValCanBuild ValCanBuild deleted the feature/fix-for-breaking-changes branch October 22, 2019 07:53
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