Skip to content
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

Remove blank Javadoc #841

Merged
merged 2 commits into from
Nov 29, 2023
Merged

Remove blank Javadoc #841

merged 2 commits into from
Nov 29, 2023

Conversation

jukzi
Copy link
Contributor

@jukzi jukzi commented Nov 7, 2023

This commit cleans up Javadoc that does not add information.
It resolves ecj warnings:
Javadoc: Description expected after ...
It helps to prevent future empty javadoc by disabling
missingJavaDoc warnings. This resolves
Javadoc: Missing ...

The modification is a result of regular expression search&replace:

in files *.java
^[\s]*\*[\s]*(@return|@param[\s]*[^\s]+|@throws[\s]*[^\s]+)\R([\s]*\*[\s]*@|[\s]*\*/\R)
->$2
^([\s]*\*[\s]*\R)([\s]*\*/\R)
->$2
^[\S\t]*/\*\*\R[\s]*\*/\R
->``

in files org.eclipse.jdt.core.prefs
org\.eclipse\.jdt\.core\.compiler\.problem\.missingJavadoc(Comments|Tags)\=[^\s]*
->org\.eclipse\.jdt\.core\.compiler\.problem\.missingJavadoc$1\=ignore

Copy link
Contributor

github-actions bot commented Nov 7, 2023

Test Results

     591 files  +   197       591 suites  +197   1h 2m 19s ⏱️ + 26m 31s
  3 842 tests ±       0    3 836 ✔️  -        1    5 💤 ±  0  1 +1 
12 132 runs  +4 044  12 095 ✔️ +4 029  36 💤 +14  1 +1 

For more details on these failures, see this check.

Results for commit 1985eca. ± Comparison against base commit 7fc35d7.

♻️ This comment has been updated with latest results.

@jukzi
Copy link
Contributor Author

jukzi commented Nov 8, 2023

I need help: the jenkins build keeps failing with wrong API errors:

07:53:13.352 [ERROR] Failed to execute goal org.eclipse.tycho:tycho-apitools-plugin:4.0.4-SNAPSHOT:verify (verify) on project org.eclipse.core.runtime: There are API errors:
07:53:13.352 [ERROR] src/org/eclipse/core/runtime/ILog.java:31 The type org.eclipse.core.runtime.ILog has been removed from org.eclipse.core.runtime_3.30.0
...

@iloveeclipse
Copy link
Member

See also eclipse-platform/eclipse.platform.ui#1286 results.
We have a major issue with API tooling in Tycho.

@jukzi
Copy link
Contributor Author

jukzi commented Nov 21, 2023

Note this change is supposed to eleminate warings like this:
image

@jukzi jukzi force-pushed the blankJavaDoc branch 6 times, most recently from e8170bc to 2ae17f1 Compare November 29, 2023 10:16
This commit cleans up Javadoc that does not add information.
It resolves ecj warnings:
 `Javadoc: Description expected after ...`
It helps to prevent future empty javadoc by disabling
missingJavaDoc warnings. This resolves
 `Javadoc: Missing ...`

The modification is a result of regular expression search&replace:

in files `*.java`
 `^[\s]*\*[\s]*(@return|@param[\s]*[^\s]+|@throws[\s]*[^\s]+)\R([\s]*\*[\s]*@|[\s]*\*/\R)`
 ->`$2`
 `^([\s]*\*[\s]*\R)([\s]*\*/\R)`
 ->`$2`
 `^[\S\t]*/\*\*\R[\s]*\*/\R`
 ->``

in files `org.eclipse.jdt.core.prefs`
 `org\.eclipse\.jdt\.core\.compiler\.problem\.missingJavadoc(Comments|Tags)\=[^\s]*`
 ->`org\.eclipse\.jdt\.core\.compiler\.problem\.missingJavadoc$1\=ignore`
Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to see this kind of cleanup! I have not checked every single change, but the used patterns look sound and when scanning through some of the changed files I did not find any unexpected changes.

And as a "side effect", although I know this is quite some work for you, @jukzi, it is great to have this PR with many required version bumps at the beginning of the current development cycle. That will ease all further PRs because in most cases no version bumps will be required anymore. So thank you for that!

@jukzi jukzi force-pushed the blankJavaDoc branch 2 times, most recently from 02cfe5e to abfd3d3 Compare November 29, 2023 11:33
@HeikoKlare
Copy link
Contributor

Remaining test fail is unrelated random fail: #770

@jukzi jukzi merged commit d4ff221 into eclipse-platform:master Nov 29, 2023
14 of 16 checks passed
@jukzi jukzi deleted the blankJavaDoc branch November 29, 2023 12:55
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.

4 participants