diff options
author | David Pursehouse <dpursehouse@collab.net> | 2019-05-27 14:07:04 +0900 |
---|---|---|
committer | David Pursehouse <dpursehouse@collab.net> | 2019-07-17 13:34:40 +0900 |
commit | 95dc833b63a1629608c64e343ab07fa6cafc84a9 (patch) | |
tree | b8380cd9510640272d5c1a8408148edb3ba15e7e /src/main/resources/Documentation/config.md | |
parent | 404e5069adbdf7d9ab17b887894842ad3638042d (diff) |
StartCommand: Fix synchronization on non-final field
When all error prone warnings are enabled the SynchronizeOnNonFinalField
bug pattern is reported:
plugins/replication/src/main/java/com/googlesource/gerrit/plugins/replication/StartCommand.java:103:
error: [SynchronizeOnNonFinalField] Synchronizing on non-final fields is not safe:
if the field is ever updated, different threads may end up locking on different objects.
synchronized (stdout) {
^
(see https://errorprone.info/bugpattern/SynchronizeOnNonFinalField)
Change-Id: Ib2df20aa28af4edd36ce5b9dfcf7d82c409dab84
Diffstat (limited to 'src/main/resources/Documentation/config.md')
0 files changed, 0 insertions, 0 deletions