jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1357702 - /jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/util/LazyValue.java
Date Thu, 05 Jul 2012 15:52:30 GMT
Author: mduerig
Date: Thu Jul  5 15:52:30 2012
New Revision: 1357702

URL: http://svn.apache.org/viewvc?rev=1357702&view=rev
Log:
OAK-144: Implement observation
synchronize access to observation timer

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/util/LazyValue.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/util/LazyValue.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/util/LazyValue.java?rev=1357702&r1=1357701&r2=1357702&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/util/LazyValue.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/util/LazyValue.java
Thu Jul  5 15:52:30 2012
@@ -38,7 +38,7 @@ public abstract class LazyValue<T> {
      *
      * @return the underlying value
      */
-    public T get() {
+    public synchronized T get() {
         if (value == null) {
             value = create();
         }



Mime
View raw message