Repository: groovy Updated Branches: refs/heads/master 35aceee82 -> cebc337bd
http://git-wip-us.apache.org/repos/asf/groovy/blob/cebc337b/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/cebc337b/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/cebc337b/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/cebc337b/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> { /**
