-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Issue #11166: Fix existing cases of getFileContents() usage in Javado… #18881
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?
Issue #11166: Fix existing cases of getFileContents() usage in Javado… #18881
Conversation
a29bb38 to
ac34928
Compare
ab9813f to
292fe40
Compare
… in JavadocMethodCheck
292fe40 to
c72df05
Compare
|
Github, generate report for JavadocMethod/all-examples-in-one |
|
Report for JavadocMethod/all-examples-in-one: |
|
@romani the differences found should be 0 right? so hear it means i made wrong logic? |
romani
left a comment
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
| " public void method() {}"))); | ||
| fileContents.reportBlockComment(1, 0, 1, 13); | ||
| fileContents.reportBlockComment(2, 3, 2, 20); | ||
| final TextBlock javadoc = fileContents.getJavadocBefore(3); |
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.
All tests should be by verifyxXxxxx method usage.
No pure unit testing.
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.
All tests in this file are unit tests there are no tests using verifyxXxxxx because thiss is testing the method getJavadocBefore that we removed its usage from JavadocMethodCheck.java
Issue #11166: Fix existing cases of getFileContents() usage in JavadocMethodCheck
removed the calling of getFileContents and parsed the javadoc comment and changed it to text
and then converted the javadoc comment AST node to a TextBlock