-
Notifications
You must be signed in to change notification settings - Fork 10
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
Handle warning regarding double locking #1228
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
...gov/hhs/cdc/trustedintermediary/etor/ruleengine/transformation/TransformationRuleEngine.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we still need Collections.synchronizedList
? I don't believe that's needed to do synchronized (list)
.
Checking and it seems that the way we're handling synchronized code we don't need the syncList anymore. Removing it... |
...gov/hhs/cdc/trustedintermediary/etor/ruleengine/transformation/TransformationRuleEngine.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second if
statement needs to have the same check as the first. I'm unsure if this is just stylistic, but I'm unsure how volatile
affects this. So I rather be safe than sorry.
...gov/hhs/cdc/trustedintermediary/etor/ruleengine/transformation/TransformationRuleEngine.java
Outdated
Show resolved
Hide resolved
...in/java/gov/hhs/cdc/trustedintermediary/etor/ruleengine/validation/ValidationRuleEngine.java
Outdated
Show resolved
Hide resolved
…gine/transformation/TransformationRuleEngine.java Co-authored-by: halprin <[email protected]>
…gine/validation/ValidationRuleEngine.java Co-authored-by: halprin <[email protected]>
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Score!
Handle warning regarding double locking
Instead of double-locking, we're now using a synchronized list inside a sync block.
Issue
#1210
Checklist
Note: You may remove items that are not applicable