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

Conversation

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

DayS commented Jun 5, 2015

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

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