groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [1/3] groovy git commit: Keep concurrentlinkedhashmap as it is
Date Fri, 01 Dec 2017 16:38:03 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 9432d3837 -> 5ca5eea82


http://git-wip-us.apache.org/repos/asf/groovy/blob/5ca5eea8/src/main/org/apache/groovy/util/concurrentlinkedhashmap/EntryWeigher.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/groovy/util/concurrentlinkedhashmap/EntryWeigher.java b/src/main/org/apache/groovy/util/concurrentlinkedhashmap/EntryWeigher.java
index aea2e42..1075c10 100644
--- a/src/main/org/apache/groovy/util/concurrentlinkedhashmap/EntryWeigher.java
+++ b/src/main/org/apache/groovy/util/concurrentlinkedhashmap/EntryWeigher.java
@@ -15,7 +15,7 @@
  */
 package org.apache.groovy.util.concurrentlinkedhashmap;
 
-//import javax.annotation.concurrent.ThreadSafe;
+import javax.annotation.concurrent.ThreadSafe;
 
 /**
  * A class that can determine the weight of an entry. The total weight threshold
@@ -25,7 +25,7 @@ package org.apache.groovy.util.concurrentlinkedhashmap;
  * @see <a href="http://code.google.com/p/concurrentlinkedhashmap/">
  *      http://code.google.com/p/concurrentlinkedhashmap/</a>
  */
-//@ThreadSafe
+@ThreadSafe
 public interface EntryWeigher<K, V> {
 
   /**

http://git-wip-us.apache.org/repos/asf/groovy/blob/5ca5eea8/src/main/org/apache/groovy/util/concurrentlinkedhashmap/EvictionListener.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/groovy/util/concurrentlinkedhashmap/EvictionListener.java
b/src/main/org/apache/groovy/util/concurrentlinkedhashmap/EvictionListener.java
index 36b48f5..4b608a0 100644
--- a/src/main/org/apache/groovy/util/concurrentlinkedhashmap/EvictionListener.java
+++ b/src/main/org/apache/groovy/util/concurrentlinkedhashmap/EvictionListener.java
@@ -15,7 +15,7 @@
  */
 package org.apache.groovy.util.concurrentlinkedhashmap;
 
-//import javax.annotation.concurrent.ThreadSafe;
+import javax.annotation.concurrent.ThreadSafe;
 
 /**
  * A listener registered for notification when an entry is evicted. An instance
@@ -35,7 +35,7 @@ package org.apache.groovy.util.concurrentlinkedhashmap;
  * @see <a href="http://code.google.com/p/concurrentlinkedhashmap/">
  *      http://code.google.com/p/concurrentlinkedhashmap/</a>
  */
-//@ThreadSafe
+@ThreadSafe
 public interface EvictionListener<K, V> {
 
   /**

http://git-wip-us.apache.org/repos/asf/groovy/blob/5ca5eea8/src/main/org/apache/groovy/util/concurrentlinkedhashmap/LinkedDeque.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/groovy/util/concurrentlinkedhashmap/LinkedDeque.java b/src/main/org/apache/groovy/util/concurrentlinkedhashmap/LinkedDeque.java
index 8deda5a..447b769 100644
--- a/src/main/org/apache/groovy/util/concurrentlinkedhashmap/LinkedDeque.java
+++ b/src/main/org/apache/groovy/util/concurrentlinkedhashmap/LinkedDeque.java
@@ -15,14 +15,13 @@
  */
 package org.apache.groovy.util.concurrentlinkedhashmap;
 
+import javax.annotation.concurrent.NotThreadSafe;
 import java.util.AbstractCollection;
 import java.util.Collection;
 import java.util.Deque;
 import java.util.Iterator;
 import java.util.NoSuchElementException;
 
-//import javax.annotation.concurrent.NotThreadSafe;
-
 /**
  * Linked list implementation of the {@link Deque} interface where the link
  * pointers are tightly integrated with the element. Linked deques have no
@@ -45,7 +44,7 @@ import java.util.NoSuchElementException;
  * @see <a href="http://code.google.com/p/concurrentlinkedhashmap/">
  *      http://code.google.com/p/concurrentlinkedhashmap/</a>
  */
-//@NotThreadSafe
+@NotThreadSafe
 final class LinkedDeque<E extends Linked<E>> extends AbstractCollection<E>
implements Deque<E> {
 
   // This class provides a doubly-linked list that is optimized for the virtual

http://git-wip-us.apache.org/repos/asf/groovy/blob/5ca5eea8/src/main/org/apache/groovy/util/concurrentlinkedhashmap/Weigher.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/groovy/util/concurrentlinkedhashmap/Weigher.java b/src/main/org/apache/groovy/util/concurrentlinkedhashmap/Weigher.java
index e554d68..c7eac09 100644
--- a/src/main/org/apache/groovy/util/concurrentlinkedhashmap/Weigher.java
+++ b/src/main/org/apache/groovy/util/concurrentlinkedhashmap/Weigher.java
@@ -15,7 +15,7 @@
  */
 package org.apache.groovy.util.concurrentlinkedhashmap;
 
-//import javax.annotation.concurrent.ThreadSafe;
+import javax.annotation.concurrent.ThreadSafe;
 
 /**
  * A class that can determine the weight of a value. The total weight threshold
@@ -25,7 +25,7 @@ package org.apache.groovy.util.concurrentlinkedhashmap;
  * @see <a href="http://code.google.com/p/concurrentlinkedhashmap/">
  *      http://code.google.com/p/concurrentlinkedhashmap/</a>
  */
-//@ThreadSafe
+@ThreadSafe
 public interface Weigher<V> {
 
   /**


Mime
View raw message