eclipse.platform.ui icon indicating copy to clipboard operation
eclipse.platform.ui copied to clipboard

More clean-up actions

Open vogella opened this issue 4 weeks ago • 13 comments

Somewhere (in the unmanageable amount of PR's) @laeubi suggested that I should activate more JDT clean-ups.

Happy to do this next week as I have a bit of time on my hand for Eclipse releated activities.

@jjohnstn or @laeubi which performance or other clean-ups can you recommend to activate?

Image Image

vogella avatar Nov 07 '25 18:11 vogella

@vogella I'm not sure M3 week is the best to activate new cleanups (as there is less time to fix issues then), maybe it is better to wait for start of next release master opens? But of course it all depends a bit how dedicated you plan to work on these things.

What one usually can already do is to activate something that sounds useful, apply it to a few projects and then review the outcome to guess if it helps or if one can already discover some bugs.

laeubi avatar Nov 07 '25 18:11 laeubi

I agree with M3, the activation of new clean-ups must not be merged, only because we have a new PR for this.

No particular suggestion for activation of clean-ups in the next release?

vogella avatar Nov 07 '25 18:11 vogella

No suggestion at the moment

vogella avatar Nov 09 '25 19:11 vogella

No suggestion at the moment

I'm not sure what to suggest, last time you opened a PR with some cleanups applied and I suggested to do it automatically instead. So that would then be something to enable ...

laeubi avatar Nov 10 '25 05:11 laeubi

I'm not aware of such a clean-up. If we do please let me know which one it is.

vogella avatar Nov 10 '25 06:11 vogella

I'm not aware of such a clean-up. If we do please let me know which one it is.

See for example here:

  • https://github.com/eclipse-platform/eclipse.platform.ui/pull/3515

in general I think we should prefer enabling cleanups when we stumble over it instead of making it manual/ (or AI semi automatic).

laeubi avatar Nov 10 '25 09:11 laeubi

Another example:

  • https://github.com/eclipse-pde/eclipse.pde/pull/2058

laeubi avatar Nov 10 '25 09:11 laeubi

Simplify lambda expression is not yet enabled? This one makes sense IHMO. Configuration for the clean-ups were in the aggregator repo, right?

vogella avatar Nov 10 '25 09:11 vogella

Simplify lambda expression is not yet enabled?

You get a textual representation of whats enabled when you look at any of the cleanup PRs

https://github.com/eclipse-platform/eclipse.platform.ui/pulls?q=is%3Apr+label%3Acleanup+is%3Aclosed

Configuration for the clean-ups were in the aggregator repo, right?

https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blob/master/eclipse-platform-parent/pom.xml#L533-L575

This one makes sense IHMO

Many things are useful but each cleanup we enable requires some dedication to:

  1. Identify and enable them
  2. Review and merge PRs
  3. Report bugs and issue to JDT and track progress there

laeubi avatar Nov 10 '25 09:11 laeubi

AH, I just remembered, we cannot activate lambda clean because Equinox startup time was negatively effected and @tjwatson had to revert the changes. So unless @tjwatson tells us that this issue has been solved, we cannot activate this clean-up.

vogella avatar Nov 10 '25 09:11 vogella

AH, I just remembered, we cannot activate lambda clean because Equinox startup time was negatively effected and @tjwatson had to revert the changes. So unless @tjwatson tells us that this issue has been solved, we cannot activate this clean-up.

one can disable some cleanups for certain projects (if it is still relevant) so its more a matter of configuration than a general problem.

laeubi avatar Nov 13 '25 10:11 laeubi

AH, I just remembered, we cannot activate lambda clean because Equinox startup time was negatively effected and @tjwatson had to revert the changes. So unless @tjwatson tells us that this issue has been solved, we cannot activate this clean-up.

one can disable some cleanups for certain projects (if it is still relevant) so its more a matter of configuration than a general problem.

Good to know, lets wait what @tjwatson says about the topic. This clean-up is anyhow something for the next release and not something for now.

vogella avatar Nov 13 '25 10:11 vogella

Use String.replace() instead of String.replaceAll() when possible looks like a good candidate, I will test in platform.ui so that we can see if this clean-up has issues.

vogella avatar Nov 14 '25 08:11 vogella