Skip to content

Conversation

@Youssefalaa7
Copy link
Contributor

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

@Youssefalaa7 Youssefalaa7 force-pushed the issue-11166-Fix-existing-cases-of-getFileContents-usage branch 2 times, most recently from a29bb38 to ac34928 Compare February 6, 2026 18:47
@Youssefalaa7 Youssefalaa7 marked this pull request as draft February 6, 2026 19:12
@Youssefalaa7 Youssefalaa7 force-pushed the issue-11166-Fix-existing-cases-of-getFileContents-usage branch 6 times, most recently from ab9813f to 292fe40 Compare February 8, 2026 01:18
@Youssefalaa7 Youssefalaa7 force-pushed the issue-11166-Fix-existing-cases-of-getFileContents-usage branch from 292fe40 to c72df05 Compare February 8, 2026 01:49
@Youssefalaa7 Youssefalaa7 marked this pull request as ready for review February 8, 2026 01:50
@Youssefalaa7
Copy link
Contributor Author

Github, generate report for JavadocMethod/all-examples-in-one

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2026

@Youssefalaa7
Copy link
Contributor Author

@romani the differences found should be 0 right? so hear it means i made wrong logic?

Copy link
Member

@romani romani left a 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);
Copy link
Member

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.

Copy link
Contributor Author

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

@Youssefalaa7 Youssefalaa7 requested a review from romani February 11, 2026 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants