Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Conversation

@dodgex
Copy link
Member

@dodgex dodgex commented Jun 4, 2015

see #1285

i started with @PreferenceClick and @PreferenceChange

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

@dodgex
Copy link
Member Author

dodgex commented Jun 4, 2015

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
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
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
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
Copy link
Member Author

dodgex commented Jun 4, 2015

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
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
Member

Great, thanks!

@dodgex
Copy link
Member Author

dodgex commented Jun 4, 2015

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

@dodgex
Copy link
Member Author

dodgex commented Jun 4, 2015

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

@dodgex
Copy link
Member Author

dodgex commented Jun 4, 2015

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
Copy link
Member

WonderCsabo commented Jun 4, 2015 via email

@WonderCsabo
Copy link
Member

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

@dodgex
Copy link
Member Author

dodgex commented Jun 4, 2015

removed the invalid commit

@dodgex
Copy link
Member Author

dodgex commented Jun 4, 2015

i hope i cought all comments.

Copy link
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
Member

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

@dodgex
Copy link
Member Author

dodgex commented Jun 4, 2015

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
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
Copy link
Member Author

dodgex commented Jun 4, 2015

duh :/

@dodgex dodgex deleted the 1285_allow_sublcasses_as_parameters branch June 4, 2015 12:11
@dodgex
Copy link
Member Author

dodgex commented Jun 4, 2015

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

@WonderCsabo
Copy link
Member

New doc @PreferenceClick is missing.

@dodgex
Copy link
Member Author

dodgex commented Jun 4, 2015

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

@WonderCsabo
Copy link
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