Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

allow sublcasses as parameters (#1285)#1441

Merged
WonderCsabo merged 15 commits into
androidannotations:developandroidannotations/androidannotations:developfrom
dodgex:1285_allow_sublcasses_as_parametersCopy head branch name to clipboard
Jun 4, 2015
Merged

allow sublcasses as parameters (#1285)#1441
WonderCsabo merged 15 commits into
androidannotations:developandroidannotations/androidannotations:developfrom
dodgex:1285_allow_sublcasses_as_parametersCopy head branch name to clipboard

Conversation

@dodgex

@dodgex dodgex commented Jun 4, 2015

Copy link
Copy Markdown
Member

see #1285

i started with @PreferenceClick and @PreferenceChange

feel free to hint for other annotations where this would be usefull!

@dodgex

dodgex commented Jun 4, 2015

Copy link
Copy Markdown
Member Author

knowing that it will take some time, i think almost all event binding annotations could benefit from this...

that would allow to use custom classes as parameter without the need to cast.

@WonderCsabo

Copy link
Copy Markdown
Member

Thanks for this contribution!

First, this was assigned to me. Don't take me wrong, i am not "jealous" that you took "my" job, but the opposite! 😉 However, next time can you ping me before start working, to avoid possible parallel work? Luckily, i did not start working on this, yet.

To answer your question: most of the event binding annotations would benefit from this. However i think the @XXXTextChange and @EditorAction annotations really used most of the time with the current class, so we can leave them be. The same applies for @SeekBarXXX and @OptionsItem, but they are little bit more priority then the formers. It would be really good to do the rest. I also think we should implement #1076 (#1076 (comment)) in the same changeset, creating different commits and branches would need more work.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I do not think this is necessary. The isSubtype() JavaDoc says:

Any type is considered to be a subtype of itself.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

okay. i'll change that

@dodgex

dodgex commented Jun 4, 2015

Copy link
Copy Markdown
Member Author

hey @WonderCsabo. sorry for taking your job! ;) i haven't checked if someone is assigned just if there is a PR... :p

I actually started doing the event binding annotations. as it is (at least until now) a simple task i'll do all of them.

regardig #1076 i think i can add that here too. :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since the extendsType validation passed, at this point typeElement cannot be null.

@WonderCsabo

Copy link
Copy Markdown
Member

Great, thanks!

@dodgex

dodgex commented Jun 4, 2015

Copy link
Copy Markdown
Member Author

@WonderCsabo I'd never forget the JavaDoc... documentation is always the most fun part of coding! :/

@dodgex

dodgex commented Jun 4, 2015

Copy link
Copy Markdown
Member Author

wtf how got the Some newever validation methods forgot to invalidate
commit into this PR :/

@dodgex

dodgex commented Jun 4, 2015

Copy link
Copy Markdown
Member Author

pushed the latest code. sadly have to leave for now.

#1076 has to wait a little. as far as i saw so far, it takes some more time than these small changes. i'll do it but i'm not sure if i can get to it today or if it has to wait for the weekend.

@WonderCsabo

WonderCsabo commented Jun 4, 2015 via email

Copy link
Copy Markdown
Member

@WonderCsabo

Copy link
Copy Markdown
Member

OK, i think i will review this branch as-is then merge, since it already has much commits.

@dodgex

dodgex commented Jun 4, 2015

Copy link
Copy Markdown
Member Author

removed the invalid commit

@dodgex

dodgex commented Jun 4, 2015

Copy link
Copy Markdown
Member Author

i hope i cought all comments.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think you are not using this at all.

@WonderCsabo

Copy link
Copy Markdown
Member

This looks really nice. I only have some final comments on a couple of things you missed.

@dodgex

dodgex commented Jun 4, 2015

Copy link
Copy Markdown
Member Author

last two comments adressed. :)

WonderCsabo added a commit that referenced this pull request Jun 4, 2015
@WonderCsabo WonderCsabo merged commit 9908423 into androidannotations:develop Jun 4, 2015
@WonderCsabo

Copy link
Copy Markdown
Member

This is just great. I am sorry but can i ask you to update the wiki later as well?

@WonderCsabo WonderCsabo added this to the 4.0 milestone Jun 4, 2015
@dodgex

dodgex commented Jun 4, 2015

Copy link
Copy Markdown
Member Author

duh :/

@dodgex dodgex deleted the 1285_allow_sublcasses_as_parameters branch June 4, 2015 12:11
@dodgex

dodgex commented Jun 4, 2015

Copy link
Copy Markdown
Member Author

wiki updated. i think #1285 can be closed now.

@WonderCsabo

Copy link
Copy Markdown
Member

New doc @PreferenceClick is missing.

@dodgex

dodgex commented Jun 4, 2015

Copy link
Copy Markdown
Member Author

no, i just added it accidently to @PreferenceHeader. fixed the commit

@WonderCsabo

Copy link
Copy Markdown
Member

Wiki merged. Thanks for all your work on this!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.