-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Fix 573 597 600 #799
Fix 573 597 600 #799
Conversation
@Override | ||
public void visitCtTypeParameterReference(CtTypeParameterReference ref) { | ||
if (!(ref.getParent() instanceof CtReference)) { | ||
assertEquals(ref.getSimpleName(), ref.getDeclaration().getSimpleName()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only in Spoon mode: (ref.getDeclaration!=null) (not in rt or noclasspath mode)
CtTypeInformation { /** returns true if this element is a generics (eg "T") and false if it is an actual type (eg 'Book" or "String") */ } |
@monperrus PR ok. |
could you add somewhere in a test a specification of isGenerics assertTrue(isGenerics) and assertFalse(isGenerics)? |
Fix #573 #597 #600