-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Issue #3730: Add type annotation tokens to AnnotationLocation check #17970
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
base: master
Are you sure you want to change the base?
Conversation
|
Github, generate website |
e215b85 to
05b9872
Compare
|
Github, generate website |
05b9872 to
2210ee7
Compare
|
@romani can u review plz? |
2210ee7 to
b62546f
Compare
|
Github, generate website |
|
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.
items:
|
|
||
| // xdoc section -- start | ||
| class Example5 { | ||
| List<@TypeArgAnnotation1 String> names; // ok |
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.
please remove all OK comments.
in all files.
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.
Okay
|
annotation is not over "implements" it is over type that is after I need a bit more time to this issue, something is weird in it. |
|
yes, annotation on keyword is not allowed na i will wait for further instructions.. |
#3730
Summary:
New tokens:
TYPECAST- Annotations on type castsTYPE_ARGUMENT- Annotations on generic type argumentsDOT- Annotations in qualified type namesLITERAL_NEW- Annotations on constructor invocationsLITERAL_THROWS- Annotations on exception types in throws clausesIMPLEMENTS_CLAUSE- Annotations on interface types in implements clausesDecision:
getAcceptableTokens()but notgetDefaultTokens()Changes:
AnnotationLocationCheck.javato accept the six new tokens