Skip to content

Commit

Permalink
Removes unnecessary (and unsafe) @weak annotation that is causing cra…
Browse files Browse the repository at this point in the history
…shes on

iOS.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=138077107
  • Loading branch information
kstanger authored and cpovirk committed Nov 3, 2016
1 parent db72cd2 commit d459383
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.google.common.annotations.GwtCompatible;
import com.google.common.annotations.GwtIncompatible;
import com.google.j2objc.annotations.Weak;

/**
* An {@link ImmutableAsList} implementation specialized for when the delegate collection is
Expand All @@ -29,7 +28,7 @@
@GwtCompatible(emulated = true)
@SuppressWarnings("serial") // uses writeReplace, not default serialization
class RegularImmutableAsList<E> extends ImmutableAsList<E> {
@Weak private final ImmutableCollection<E> delegate;
private final ImmutableCollection<E> delegate;
private final ImmutableList<? extends E> delegateList;

RegularImmutableAsList(ImmutableCollection<E> delegate, ImmutableList<? extends E> delegateList) {
Expand Down

0 comments on commit d459383

Please sign in to comment.