-
-
Notifications
You must be signed in to change notification settings - Fork 351
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
added a test for Comment Association and Printing #2636
Conversation
Thank you. It is good start, so we can debug it more easily now. |
Hi @pvojtechovsky, just wanted to confirm my understanding of comment association. So for the comment associated with class
For comments associated with interface
And finally, the comment associated with method
Am I right? Also, I would like to ask why is
considered to be to associated with |
you are right
Because in java there is usually true that comment belongs to the element which follows after the comment. But note... there are some rare exceptions from this rule. |
Sorry @pvojtechovsky, I was not available this weekend. Your fix seems good, ready for merge? |
It is really difficult to find a rule that will work in all the cases. You should probably take into account the number of new lines before and after the comments. |
yes, I just added test contract comment. So then it is ready for merge |
Thanks a lot! |
For Issue #2482. Added a test class for the following issues: