diff options
author | Abhijeet Kaur <abkaur@google.com> | 2020-04-01 15:05:43 +0100 |
---|---|---|
committer | Abhijeet Kaur <abkaur@google.com> | 2020-04-02 16:52:54 +0000 |
commit | 98deae1551a0f11a1cd7b49ce3b0cb781ce6d873 (patch) | |
tree | 5842589f07232c552a2dc74a68c3377952a98d11 /cmds/statsd/src/HashableDimensionKey.cpp | |
parent | d7df0c13d93d0a0fb8a486a946e5370ae4c5ff21 (diff) |
Follow best practices for Atomic variables
* Make Atomic variables final so it can never be re-assigned to a null
object and hence avoid NPE.
* Set the value of the variables instead of re-assigning the object.
Test: Manual
Bug: 152479372
Change-Id: I58279d589d6247c53155755223fd8863f1049257
Diffstat (limited to 'cmds/statsd/src/HashableDimensionKey.cpp')
0 files changed, 0 insertions, 0 deletions