Commit bcd722f
committed
Annotate android LocalCache.spliterator() with @IgnoreJRERequirement.
CI's animal-sniffer check on the android variant (gummy-bears-api-23) rejected
the Spliterator override added in the previous commit because java.util.Spliterator
and Spliterators.spliteratorUnknownSize(...) are not part of Android API 23.
Following the established pattern in ImmutableCollection.java, Ints.java, and
Longs.java under android/guava/src, annotate the method with the package-local
@IgnoreJRERequirement. The method is only invoked from APIs whose signatures
already carry Java 8 types, so callers are already gated by the same constraint.
The guava/src variant is unaffected because it uses the java18 signature, which
includes Spliterator.
Made-with: Cursor1 parent 6f9a06c commit bcd722f
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4406 | 4406 | | |
4407 | 4407 | | |
4408 | 4408 | | |
| 4409 | + | |
4409 | 4410 | | |
4410 | 4411 | | |
4411 | 4412 | | |
| |||
0 commit comments