Skip to content

Commit

Permalink
Fix @GuardedBy annotations with invalid lock expressions.
Browse files Browse the repository at this point in the history
- fix typos
- qualified 'this' accesses can only be used for enclosing classes: the
declaring class is accessed as 'this', enclosing classes are accessed as
'OuterClass.this'
- replace annotations being used for general documentation with comments
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=75324114
  • Loading branch information
cpovirk committed Sep 23, 2014
1 parent e3ee2cb commit 70abca0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions guava/src/com/google/common/eventbus/SubscriberRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import java.util.concurrent.CopyOnWriteArraySet;

import javax.annotation.Nullable;
import javax.annotation.concurrent.GuardedBy;

/**
* Registry of subscribers to a single event bus.
Expand All @@ -62,7 +61,6 @@ final class SubscriberRegistry {
* <p>The {@link CopyOnWriteArraySet} values make it easy and relatively lightweight to get an
* immutable snapshot of all current subscribers to an event without any locking.
*/
@GuardedBy("lock")
private final ConcurrentMap<Class<?>, CopyOnWriteArraySet<Subscriber>> subscribers =
Maps.newConcurrentMap();

Expand Down

0 comments on commit 70abca0

Please sign in to comment.