Closed Jawvig closed 2 years ago
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
For more information, open the CLA check for this pull request.
Hello,
I apologize, but this repository is being archived and replaced by google-pay/wallet-samples going forward. If you still have a question, please open a new issue in that repository.
Thank you!
The singleton
resourceDefinitions
is initialized at type construction time and so will never be null bey the timegetInstance
is called. This Change removes the redundant null check. On glancing at the original code it looked like a potential race condition with multiple possible instances being created.Note that this pattern is repeated elsewhere, but I'm testing the water with this PR to see if you folks are open to community help before I put any more effort in.