Skip to content

Commit

Permalink
Add a missing @since tag, and remove @FunctionalInterface from a …
Browse files Browse the repository at this point in the history
…package-private method.

(The latter prepares for [Android compatibility for Java 8 APIs](#6567).)

RELNOTES=n/a
PiperOrigin-RevId: 626483101
  • Loading branch information
cpovirk authored and Google Java Core Libraries committed Apr 21, 2024
1 parent 183837d commit 3a65e11
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Expand Up @@ -45,7 +45,11 @@
import java.util.function.Supplier;
import org.checkerframework.checker.nullness.qual.Nullable;

/** Tester for {@code Spliterator} implementations. */
/**
* Tester for {@code Spliterator} implementations.
*
* @since 21.0
*/
@GwtCompatible
@ElementTypesAreNonnullByDefault
public final class SpliteratorTester<E extends @Nullable Object> {
Expand Down
Expand Up @@ -309,7 +309,6 @@ abstract static class FlatMapSpliterator<
OutSpliteratorT extends Spliterator<OutElementT>>
implements Spliterator<OutElementT> {
/** Factory for constructing {@link FlatMapSpliterator} instances. */
@FunctionalInterface
interface Factory<InElementT extends @Nullable Object, OutSpliteratorT extends Spliterator<?>> {
OutSpliteratorT newFlatMapSpliterator(
@CheckForNull OutSpliteratorT prefix,
Expand Down

0 comments on commit 3a65e11

Please sign in to comment.