Skip to content

Commit 5f2fbf2

Browse files
ssmitanick-someone
authored andcommitted
Making headSet(E, boolean), tailSet(E, boolean) public in GWT emulated ImmutableSortedSet.
RELNOTES=`com.google.common.collect.ImmutableSortedSet`: Making `headSet(E, boolean)` and `tailSet(E, boolean)` methods public for GWT emulated ImmutableSortedSet. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=303959507
1 parent 7e0fe90 commit 5f2fbf2

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

android/guava/src/com/google/common/collect/ImmutableSortedSet.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,6 @@ public ImmutableSortedSet<E> headSet(E toElement) {
543543
}
544544

545545
/** @since 12.0 */
546-
@GwtIncompatible // NavigableSet
547546
@Override
548547
public ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) {
549548
return headSetImpl(checkNotNull(toElement), inclusive);
@@ -593,7 +592,6 @@ public ImmutableSortedSet<E> tailSet(E fromElement) {
593592
}
594593

595594
/** @since 12.0 */
596-
@GwtIncompatible // NavigableSet
597595
@Override
598596
public ImmutableSortedSet<E> tailSet(E fromElement, boolean inclusive) {
599597
return tailSetImpl(checkNotNull(fromElement), inclusive);

guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public E floor(E e) {
331331
return !set.isEmpty() ? set.last() : null;
332332
}
333333

334-
ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) {
334+
public ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) {
335335
checkNotNull(toElement);
336336
if (inclusive) {
337337
E tmp = higher(toElement);
@@ -372,7 +372,7 @@ public ImmutableSortedSet<E> tailSet(E fromElement) {
372372
}
373373
}
374374

375-
ImmutableSortedSet<E> tailSet(E fromElement, boolean inclusive) {
375+
public ImmutableSortedSet<E> tailSet(E fromElement, boolean inclusive) {
376376
checkNotNull(fromElement);
377377
if (!inclusive) {
378378
E tmp = higher(fromElement);

guava/src/com/google/common/collect/ImmutableSortedSet.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,6 @@ public ImmutableSortedSet<E> headSet(E toElement) {
618618
}
619619

620620
/** @since 12.0 */
621-
@GwtIncompatible // NavigableSet
622621
@Override
623622
public ImmutableSortedSet<E> headSet(E toElement, boolean inclusive) {
624623
return headSetImpl(checkNotNull(toElement), inclusive);
@@ -668,7 +667,6 @@ public ImmutableSortedSet<E> tailSet(E fromElement) {
668667
}
669668

670669
/** @since 12.0 */
671-
@GwtIncompatible // NavigableSet
672670
@Override
673671
public ImmutableSortedSet<E> tailSet(E fromElement, boolean inclusive) {
674672
return tailSetImpl(checkNotNull(fromElement), inclusive);

0 commit comments

Comments
 (0)