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.

Support @FragmentArg on fields with type variable type#1445

Merged
yDelouis merged 3 commits into
androidannotations:developandroidannotations/androidannotations:developfrom
WonderCsabo:1444_genericFragmentArgWonderCsabo/androidannotations:1444_genericFragmentArgCopy head branch name to clipboard
Jun 14, 2015
Merged

Support @FragmentArg on fields with type variable type#1445
yDelouis merged 3 commits into
androidannotations:developandroidannotations/androidannotations:developfrom
WonderCsabo:1444_genericFragmentArgWonderCsabo/androidannotations:1444_genericFragmentArgCopy head branch name to clipboard

Conversation

@WonderCsabo

Copy link
Copy Markdown
Member

Related to #1444.

The old code has lots of things like this:

DeclaredType declaredType = (DeclaredType) element;
typeString = declaredType.asElement().toString();
elementType = annotationHelper.typeElementFromQualifiedName(typeString);

So basically serialize the type to a string, the reload the type from it. It is totally unnecessary in most cases i think, but it is maybe an old workaround that i do not know. All tests pass and my projects are working with the new way. @DayS @yDelouis any thoughts whether the old method was intentional or not?

@DayS

DayS commented Jun 5, 2015

Copy link
Copy Markdown
Contributor

I have no idea why this part of the code was done like that. It's, indeed, quite odd.

@WonderCsabo

Copy link
Copy Markdown
Member Author

Thanks! I hope it does not break anything...

@WonderCsabo WonderCsabo mentioned this pull request Jun 10, 2015
yDelouis added a commit that referenced this pull request Jun 14, 2015
Support @FragmentArg on fields with type variable type
@yDelouis yDelouis merged commit 72d344d into androidannotations:develop Jun 14, 2015
@yDelouis

Copy link
Copy Markdown
Contributor

Thanks.

@yDelouis yDelouis added this to the 4.0 milestone Jun 14, 2015
@WonderCsabo WonderCsabo deleted the 1444_genericFragmentArg branch June 14, 2015 13:21

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.

@yDelouis i wonder we may have to use TypeKind.ERROR, too (or instead)?

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.

3 participants

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