Skip to content

Commit

Permalink
Fixes some cycles EnumMap.
Browse files Browse the repository at this point in the history
	Change on 2013/03/18 by kstanger <kstanger@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=44107427
  • Loading branch information
tomball committed Apr 10, 2013
1 parent 59be3f5 commit 8add023
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package java.util;

import com.google.j2objc.annotations.Weak;

import java.io.Serializable;

/**
Expand Down Expand Up @@ -182,6 +184,7 @@ private void checkStatus() {

private static class EnumMapKeySet<KT extends Enum<KT>, VT> extends
AbstractSet<KT> {
@Weak
private final EnumMap<KT, VT> enumMap;

EnumMapKeySet(EnumMap<KT, VT> em) {
Expand Down Expand Up @@ -227,6 +230,7 @@ public int size() {

private static class EnumMapValueCollection<KT extends Enum<KT>, VT>
extends AbstractCollection<VT> {
@Weak
private final EnumMap<KT, VT> enumMap;

EnumMapValueCollection(EnumMap<KT, VT> em) {
Expand Down Expand Up @@ -301,6 +305,7 @@ public E next() {

private static class EnumMapEntrySet<KT extends Enum<KT>, VT> extends
AbstractSet<Map.Entry<KT, VT>> {
@Weak
private final EnumMap<KT, VT> enumMap;

EnumMapEntrySet(EnumMap<KT, VT> em) {
Expand Down

0 comments on commit 8add023

Please sign in to comment.