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

Make BuildInfoRecorder.java thread safe #78

Merged
merged 1 commit into from
Sep 26, 2023
Merged

Conversation

rdeangelis83
Copy link
Contributor

The buildTimeDependencies collection is a SynchronizedCollection but like mentioned in the JavaDoc of Collections.synchrizedCollection() it is necessary to use a synchronize block by traversing the collection via iterator, what will be happen by hands over the collection to the addAll method.

  • All tests passed. If this feature is not already covered by the tests, I added new tests.

The buildTimeDependencies collection is a SynchronizedCollection but like mentioned in the JavaDoc of Collections.synchrizedCollection() it is necessary to use a synchronize block by traversing the collection via iterator, what will be happen by hands over the collection to the addAll method.
@github-actions
Copy link

github-actions bot commented Sep 25, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@eyalbe4 eyalbe4 requested a review from yahavi September 25, 2023 13:06
@rdeangelis83
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

Copy link
Member

@yahavi yahavi left a comment

Choose a reason for hiding this comment

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

LGTM

@yahavi yahavi added improvement Automatically generated release notes bug Something isn't working and removed improvement Automatically generated release notes labels Sep 26, 2023
@yahavi yahavi merged commit 868c74a into jfrog:master Sep 26, 2023
4 checks passed
@rdeangelis83 rdeangelis83 deleted the patch-1 branch September 26, 2023 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants