You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/10/02 18:57:29 UTC
[GitHub] [camel] PascalSchumacher opened a new pull request #4354: Avoid explicit initialization of AtomicBoolean with its default value
PascalSchumacher opened a new pull request #4354:
URL: https://github.com/apache/camel/pull/4354
The constructor new AtomicBoolean(false) causes a volatile write that can be saved as the constructor parameter is the default value.
This saves a volatile write but makes the code (a bit) less readable. Not sure if this is worth it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel] davsclaus merged pull request #4354: Avoid explicit initialization of AtomicBoolean with its default value
Posted by GitBox <gi...@apache.org>.
davsclaus merged pull request #4354:
URL: https://github.com/apache/camel/pull/4354
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org