mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-02 15:15:23 +00:00
Reduce race condition opportunity
This commit is contained in:
parent
6ee857d0b7
commit
33334aab54
@ -55,7 +55,7 @@ public final class LazilyLoadedCtor {
|
||||
this.ctorName = ctorName;
|
||||
this.sealed = sealed;
|
||||
|
||||
if (getter == null) {
|
||||
if (setter == null) {
|
||||
Method[] methods = FunctionObject.getMethodList(getClass());
|
||||
getter = FunctionObject.findSingleMethod(methods, "getProperty");
|
||||
setter = FunctionObject.findSingleMethod(methods, "setProperty");
|
||||
|
Loading…
Reference in New Issue
Block a user