File tree Expand file tree Collapse file tree 4 files changed +16
-0
lines changed
android/guava/src/com/google/common/collect
guava/src/com/google/common/collect Expand file tree Collapse file tree 4 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -382,6 +382,10 @@ Object writeReplace() {
382
382
}
383
383
}
384
384
385
+ // TODO(b/418181860): This method creates retain cycles in J2ObjC. In order to break the cycle,
386
+ // there needs to be separate classes for primary and complement range set, where the primary one
387
+ // would hold {@code @LazyInit @RetainedWith @Nullable} reference to its complement, and the other
388
+ // {@code final} reference.
385
389
@ Override
386
390
public ImmutableRangeSet <C > complement () {
387
391
ImmutableRangeSet <C > result = complement ;
Original file line number Diff line number Diff line change @@ -63,6 +63,10 @@ public NavigableSet<E> elementSet() {
63
63
64
64
@ LazyInit private transient @ Nullable UnmodifiableSortedMultiset <E > descendingMultiset ;
65
65
66
+ // TODO(b/418181860): This method creates retain cycles in J2ObjC. In order to break the cycle,
67
+ // there needs to be separate classes for primary and descending multiset, where the primary one
68
+ // would hold {@code @LazyInit @RetainedWith @Nullable} reference to its descending multiset, and
69
+ // the other {@code final} reference.
66
70
@ Override
67
71
public SortedMultiset <E > descendingMultiset () {
68
72
UnmodifiableSortedMultiset <E > result = descendingMultiset ;
Original file line number Diff line number Diff line change @@ -381,6 +381,10 @@ Object writeReplace() {
381
381
}
382
382
}
383
383
384
+ // TODO(b/418181860): This method creates retain cycles in J2ObjC. In order to break the cycle,
385
+ // there needs to be separate classes for primary and complement range set, where the primary one
386
+ // would hold {@code @LazyInit @RetainedWith @Nullable} reference to its complement, and the other
387
+ // {@code final} reference.
384
388
@ Override
385
389
public ImmutableRangeSet <C > complement () {
386
390
ImmutableRangeSet <C > result = complement ;
Original file line number Diff line number Diff line change @@ -63,6 +63,10 @@ public NavigableSet<E> elementSet() {
63
63
64
64
@ LazyInit private transient @ Nullable UnmodifiableSortedMultiset <E > descendingMultiset ;
65
65
66
+ // TODO(b/418181860): This method creates retain cycles in J2ObjC. In order to break the cycle,
67
+ // there needs to be separate classes for primary and descending multiset, where the primary one
68
+ // would hold {@code @LazyInit @RetainedWith @Nullable} reference to its descending multiset, and
69
+ // the other {@code final} reference.
66
70
@ Override
67
71
public SortedMultiset <E > descendingMultiset () {
68
72
UnmodifiableSortedMultiset <E > result = descendingMultiset ;
You can’t perform that action at this time.
0 commit comments