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

Deprecated the Item interface #40

Merged
merged 2 commits into from
Nov 29, 2016
Merged

Deprecated the Item interface #40

merged 2 commits into from
Nov 29, 2016

Conversation

drakeet
Copy link
Owner

@drakeet drakeet commented Nov 29, 2016

Finally, I decided to discard the Item interface. It brings meaning can not offset the trouble it brings. So, I use Object to instead of it, and keep the interface but Deprecated so that we don't change our old type classes, the Item is useless and harmless now.

Chinese:

对于 MultiType Item 这个接口,最后我决定抛弃它,因为它带来的意义无法抵消它带来的麻烦,比如我们无法在一个纯 java module 里定义我们的 item types(若要如此,这个 module 势必要引用 MultiType,但实际上它不应该引用任何 Android library);另外,对于嵌套 item class,从面向对象观点看来它们不应该实现 Item 接口。因此现在使用 Object 替代 Item,但仍然保留了 Item 接口,只是标记了废弃,使得开发者们无须修改旧的代码即可兼容。虽然它不再被使用,但即使使用了它也是没关系的,它是无用的、无害的,不会产生任何影响。

@drakeet
Copy link
Owner Author

drakeet commented Nov 29, 2016

#34

@drakeet drakeet added this to the v2.2.2 milestone Nov 29, 2016
@drakeet drakeet merged commit b449a2f into master Nov 29, 2016
@drakeet drakeet deleted the feature/deprecated-item branch November 29, 2016 14:26
@drakeet
Copy link
Owner Author

drakeet commented Nov 29, 2016

Closed #34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant