groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] 02/11: Overrides should match their parent class methods in synchronization
Date Wed, 21 Aug 2019 09:24:02 GMT
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 81c2e79a1eb382713b47349dba213b335233f80a
Author: Bo Zhang <zhangbodut@gmail.com>
AuthorDate: Sat Aug 17 19:04:17 2019 +0800

    Overrides should match their parent class methods in synchronization
---
 src/main/java/groovy/lang/ExpandoMetaClass.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/groovy/lang/ExpandoMetaClass.java b/src/main/java/groovy/lang/ExpandoMetaClass.java
index a4482c2..5c47a22 100644
--- a/src/main/java/groovy/lang/ExpandoMetaClass.java
+++ b/src/main/java/groovy/lang/ExpandoMetaClass.java
@@ -477,11 +477,11 @@ public class ExpandoMetaClass extends MetaClassImpl implements GroovyObject
{
         ExpandoMetaClassCreationHandle.disable();
     }
 
-    /* (non-Javadoc)
-     * @see groovy.lang.MetaClassImpl#initialize()
+    /**
+     * {@inheritDoc}
      */
-
-    public void initialize() {
+    @Override
+    public synchronized void initialize() {
         try {
             writeLock.lock();
             if (!isInitialized()) {


Mime
View raw message