Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Spotted bugs in tests #25115

Merged
merged 2 commits into from
Aug 25, 2024
Merged

Spotted bugs in tests #25115

merged 2 commits into from
Aug 25, 2024

Conversation

dmatej
Copy link
Contributor

@dmatej dmatej commented Aug 25, 2024

  • detected by SpotBugs
    • unused ServiceLocator in hk2 config generator tests
    • known null value - was a bad practice. The field value could be changed in general but was used as if it could not be changed. But if it could not be changed, it is known null and there is no reason to check it with assert. Or if it could be changed, then it should not be public.

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
- It is right, it is a public field and it is changed from the outside, maybe
  even by multiple threads; not true in the unit test, but ...

Signed-off-by: David Matějček <david.matejcek@omnifish.ee>
@dmatej dmatej added this to the 7.0.17 milestone Aug 25, 2024
@dmatej dmatej self-assigned this Aug 25, 2024
@dmatej dmatej merged commit 0b8e7d1 into eclipse-ee4j:master Aug 25, 2024
2 checks passed
@dmatej dmatej deleted the tests-spotted-bugs branch August 26, 2024 13:24
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants