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

Clean Code for bundles/org.eclipse.osgi #796

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eclipse-equinox-bot
Copy link
Contributor

@eclipse-equinox-bot eclipse-equinox-bot commented Jan 27, 2025

The following cleanups where applied:

  • Add final modifier to private fields
  • Add missing '@Deprecated' annotations
  • Add missing '@Override' annotations
  • Add missing '@Override' annotations to implementations of interface methods
  • Make inner classes static where possible
  • Replace deprecated calls with inlined content where possible

Copy link

github-actions bot commented Jan 27, 2025

Test Results

  669 files  ±0    669 suites  ±0   1h 16m 6s ⏱️ + 2m 33s
2 223 tests ±0  2 176 ✅ ±0   47 💤 ±0  0 ❌ ±0 
6 813 runs  ±0  6 670 ✅ ±0  143 💤 ±0  0 ❌ ±0 

Results for commit 0ba013e. ± Comparison against base commit e35221a.

♻️ This comment has been updated with latest results.

Copy link
Member

@laeubi laeubi left a comment

Choose a reason for hiding this comment

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

Cleanup produces a compile error, need to investigate.

@laeubi
Copy link
Member

laeubi commented Jan 27, 2025

I think this is similar to

I need to adjust Tycho to pass in the configured toolchain JDKs so we get a real java 8 JVM most likely.

@laeubi laeubi marked this pull request as draft January 27, 2025 11:48
@eclipse-equinox-bot eclipse-equinox-bot force-pushed the clean-code/bundles/org.eclipse.osgi branch from 3779d22 to 48abd4a Compare January 28, 2025 03:36
@laeubi
Copy link
Member

laeubi commented Jan 28, 2025

@eclipse-equinox-bot eclipse-equinox-bot force-pushed the clean-code/bundles/org.eclipse.osgi branch 2 times, most recently from 62d8981 to 1bbcc81 Compare January 30, 2025 03:33
@laeubi
Copy link
Member

laeubi commented Jan 30, 2025

@tjwatson this also cleanups the felix embedded code, we actually have two options here I think

  1. I implement some kind of exclusion rules in tycho so we can skip some source path
  2. We apply them as is to the codebase

@eclipse-equinox-bot eclipse-equinox-bot force-pushed the clean-code/bundles/org.eclipse.osgi branch from 1bbcc81 to 657162c Compare January 30, 2025 08:16
@laeubi laeubi marked this pull request as ready for review January 30, 2025 10:32
Copy link
Member

@laeubi laeubi left a comment

Choose a reason for hiding this comment

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

Also working here now, but waiting for feedback from @tjwatson

Copy link
Contributor

@tjwatson tjwatson left a comment

Choose a reason for hiding this comment

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

The changes to org.eclipse packages look fine. We should not change anything to org.osgi or org.apache source. That should be done in the respective projects. Especially for the org.osgi APIs

@eclipse-equinox-bot eclipse-equinox-bot force-pushed the clean-code/bundles/org.eclipse.osgi branch from 657162c to 3432f07 Compare February 1, 2025 03:35
@eclipse-equinox-bot eclipse-equinox-bot force-pushed the clean-code/bundles/org.eclipse.osgi branch from 3432f07 to 0ba013e Compare February 2, 2025 03:32
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.

3 participants