sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1639968 - in /sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis: internal/jaxb/IdentifierMapAdapter.java util/collection/Cache.java
Date Sun, 16 Nov 2014 06:36:47 GMT
Author: desruisseaux
Date: Sun Nov 16 06:36:47 2014
New Revision: 1639968

URL: http://svn.apache.org/r1639968
Log:
Cache entrySet reference shall be volatile.
Trivial formatting fix.

Modified:
    sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/jaxb/IdentifierMapAdapter.java
    sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/collection/Cache.java

Modified: sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/jaxb/IdentifierMapAdapter.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/jaxb/IdentifierMapAdapter.java?rev=1639968&r1=1639967&r2=1639968&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/jaxb/IdentifierMapAdapter.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/jaxb/IdentifierMapAdapter.java
[UTF-8] Sun Nov 16 06:36:47 2014
@@ -550,7 +550,7 @@ public class IdentifierMapAdapter extend
                 buffer.append(", ");
             }
             SpecializedIdentifier.format(buffer, entry.getKey(), entry.getValue());
-	}
+        }
         return buffer.append('}').toString();
     }
 }

Modified: sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/collection/Cache.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/collection/Cache.java?rev=1639968&r1=1639967&r2=1639968&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/collection/Cache.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/util/collection/Cache.java
[UTF-8] Sun Nov 16 06:36:47 2014
@@ -185,7 +185,7 @@ public class Cache<K,V> extends Abstract
     /**
      * A view over the entries in the cache.
      */
-    private transient Set<Entry<K,V>> entries;
+    private volatile transient Set<Entry<K,V>> entries;
 
     /**
      * Creates a new cache with a default initial capacity and cost limit of 100.



Mime
View raw message