We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 338ecf1 commit 43a7d3fCopy full SHA for 43a7d3f
webtau-groovy/src/main/groovy/com/twosigma/webtau/data/LazyTestResource.groovy
@@ -29,12 +29,14 @@ class LazyTestResource<E> {
29
}
30
31
def getProperty(String name) {
32
- synchronized (this) {
33
- if (this.@originalCache == null) {
34
- this.@originalCache = this.@originalSupplier.get()
35
- }
+ return get()."$name"
+ }
36
37
- return this.@originalCache."$name"
+ synchronized E get() {
+ if (this.@originalCache == null) {
+ this.@originalCache = this.@originalSupplier.get()
38
39
+
40
+ return this.@originalCache
41
42
0 commit comments