diff options
| author | 2021-03-04 19:15:47 +0000 | |
|---|---|---|
| committer | 2021-03-05 18:20:33 +0000 | |
| commit | 52323b511348734e691bd36f91def4da2553df48 (patch) | |
| tree | c9d9c4a58181de89a95d4d0f7961013e257e5ecc /java/kotlin.go | |
| parent | d6ceb8600c062531db02e87f342629bcea837d3a (diff) | |
Avoid SetErrorHandler mutating FixtureFactory
A FixtureFactory is supposed to be immutable to allow them to be safely
shared but unfortunately the implementation of SetErrorHandler broke
that constraint. That made it very easy to mistakenly add an error
handler specific to a test to a shared factory breaking other tests
that use that factory.
This change causes SetErrorHandler to create a new instance of the
factory to avoid that.
Bug: 181070625
Test: m nothing
Change-Id: Ia5356a04189099c88880a2a521af29ab72560f30
Diffstat (limited to 'java/kotlin.go')
0 files changed, 0 insertions, 0 deletions