diff options
Diffstat (limited to 'guava/src/com/google/common/io/CharSource.java')
-rw-r--r-- | guava/src/com/google/common/io/CharSource.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/guava/src/com/google/common/io/CharSource.java b/guava/src/com/google/common/io/CharSource.java index 24a67af5c..3c82bac13 100644 --- a/guava/src/com/google/common/io/CharSource.java +++ b/guava/src/com/google/common/io/CharSource.java @@ -16,8 +16,8 @@ package com.google.common.io; import static com.google.common.base.Preconditions.checkNotNull; -import com.google.common.annotations.Beta; import com.google.common.annotations.GwtIncompatible; +import com.google.common.annotations.J2ktIncompatible; import com.google.common.base.Ascii; import com.google.common.base.Optional; import com.google.common.base.Splitter; @@ -81,6 +81,7 @@ import org.checkerframework.checker.nullness.qual.Nullable; * @since 14.0 * @author Colin Decker */ +@J2ktIncompatible @GwtIncompatible @ElementTypesAreNonnullByDefault public abstract class CharSource { @@ -99,7 +100,6 @@ public abstract class CharSource { * * @since 20.0 */ - @Beta public ByteSource asByteSource(Charset charset) { return new AsByteSource(charset); } @@ -155,7 +155,6 @@ public abstract class CharSource { * @throws IOException if an I/O error occurs while opening the stream * @since 22.0 */ - @Beta @MustBeClosed public Stream<String> lines() throws IOException { BufferedReader reader = openBufferedStream(); @@ -185,7 +184,6 @@ public abstract class CharSource { * * @since 19.0 */ - @Beta public Optional<Long> lengthIfKnown() { return Optional.absent(); } @@ -209,7 +207,6 @@ public abstract class CharSource { * @throws IOException if an I/O error occurs while reading the length of this source * @since 19.0 */ - @Beta public long length() throws IOException { Optional<Long> lengthIfKnown = lengthIfKnown(); if (lengthIfKnown.isPresent()) { @@ -364,7 +361,6 @@ public abstract class CharSource { * processor} throws an {@code IOException} * @since 16.0 */ - @Beta @CanIgnoreReturnValue // some processors won't return a useful result @ParametricNullness public <T extends @Nullable Object> T readLines(LineProcessor<T> processor) throws IOException { @@ -394,7 +390,6 @@ public abstract class CharSource { * throws an {@code UncheckedIOException} * @since 22.0 */ - @Beta public void forEachLine(Consumer<? super String> action) throws IOException { try (Stream<String> lines = lines()) { // The lines should be ordered regardless in most cases, but use forEachOrdered to be sure |