You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2019/12/26 20:10:03 UTC
[groovy] 02/03: BindingProxy: Make synchronization of getter and
setter for Model consistent by making getModel synchronized.
This is an automated email from the ASF dual-hosted git repository.
pascalschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 15754d262c4f311b74f0bd0e5bcec88ec66b312c
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Thu Dec 26 21:07:22 2019 +0100
BindingProxy: Make synchronization of getter and setter for Model consistent by making getModel synchronized.
---
.../src/main/java/org/apache/groovy/swing/binding/BindingProxy.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/subprojects/groovy-swing/src/main/java/org/apache/groovy/swing/binding/BindingProxy.java b/subprojects/groovy-swing/src/main/java/org/apache/groovy/swing/binding/BindingProxy.java
index 6240582..340f29e 100644
--- a/subprojects/groovy-swing/src/main/java/org/apache/groovy/swing/binding/BindingProxy.java
+++ b/subprojects/groovy-swing/src/main/java/org/apache/groovy/swing/binding/BindingProxy.java
@@ -49,7 +49,7 @@ public class BindingProxy extends GroovyObjectSupport implements BindingUpdatabl
this.model = model;
}
- public Object getModel() {
+ public synchronized Object getModel() {
return model;
}