Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Narrow @Beta annotations to the methods of Futures #3287

Closed
wants to merge 1 commit into from
Closed

Narrow @Beta annotations to the methods of Futures #3287

wants to merge 1 commit into from

Conversation

swankjesse
Copy link

Right now the @beta annotation on the class is easy to miss, especially
since certain methods are also directly-annotated @beta.

Remove the annotation from the class and apply it to each public member.

In a follow-up PR I'd like to remove the @beta annotation from a few
methods (transformAsync, catchingAsync, immediateFuture).

Right now the @beta annotation on the class is easy to miss, especially
since certain methods are also directly-annotated @beta.

Remove the annotation from the class and apply it to each public member.

In a follow-up PR I'd like to remove the @beta annotation from a few
methods (transformAsync, catchingAsync, immediateFuture).
@kluever kluever requested a review from ronshapiro October 8, 2018 15:40
@kluever kluever added the type=debeta Request to remove something from @Beta label Oct 8, 2018
@ronshapiro
Copy link
Contributor

The change LGTM. As for the removals, I know @cpovirk had plans for addressing some of these, but I can't find the doc (if there was one) and he's currently out on leave.

@ronshapiro
Copy link
Contributor

Hrm, those JDK 11 failures are bizarre. Maybe they're flaky?

@cgdecker
Copy link
Member

cgdecker commented Oct 8, 2018

Ugh, actually I think the build is just failing on JDK 11 in general. I noticed that last week when I pushed the change adding JDK 11 to the travis build, but failed to do anything about it so far.

@cpovirk
Copy link
Member

cpovirk commented Jan 30, 2019

Thanks. I've imported this into an internal CL I have going -- which will also remove a small number of @Beta tags as a starting point.

@ronshapiro ronshapiro mentioned this pull request Feb 14, 2019
ronshapiro pushed a commit that referenced this pull request Feb 14, 2019
collect
- most Collectors (aside from BloomFilter and ImmutableRange*, as those whole classes are @beta (though I did remove the redundant @beta annotation from the Collector-returning methods for clarity))
- Maps: asConverter, immutableEnumMap
- MultimapBuilder
- Streams: stream(Iterable), concat

io
- ByteStreams: copy, toByteArray
- CharStreams: copy, toString
- Files: as(Char|Byte)(Source|Sink)

util.concurrent
- Futures: addCallback, getDone, getUnchecked, immediateCancelledFuture, immediateFailedFuture, immediateFuture
- ListeningScheduledExecutorService
- Uninterruptibles

other
- HtmlEscapers
- Splitter.splitToList
- Ticker

Fixes #3287
Fixes #3251 (aside from ImmutableRange*, but those whole classes are @beta, anyway)
Addresses the main concerns of #3285 but doesn't cover the broader request
Fixes #3340
Partially addresses #3239

RELNOTES=Removed `@Beta` from a number of frequently used APIs.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=232681253
@ronshapiro ronshapiro mentioned this pull request Feb 26, 2019
ronshapiro pushed a commit that referenced this pull request Feb 26, 2019
collect
- most Collectors (aside from BloomFilter and ImmutableRange*, as those whole classes are @beta (though I did remove the redundant @beta annotation from the Collector-returning methods for clarity))
- Maps: asConverter, immutableEnumMap
- MultimapBuilder
- Streams: stream(Iterable), concat

io
- ByteStreams: copy, toByteArray
- CharStreams: copy, toString
- Files: as(Char|Byte)(Source|Sink)

util.concurrent
- Futures: addCallback, getDone, getUnchecked, immediateCancelledFuture, immediateFailedFuture, immediateFuture
- ListeningScheduledExecutorService
- Uninterruptibles

other
- HtmlEscapers
- Splitter.splitToList
- Ticker

Fixes #3287
Fixes #3251 (aside from ImmutableRange*, but those whole classes are @beta, anyway)
Addresses the main concerns of #3285 but doesn't cover the broader request
Fixes #3340
Partially addresses #3239

RELNOTES=Removed `@Beta` from a number of frequently used APIs.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=232681253
ronshapiro pushed a commit that referenced this pull request Feb 26, 2019
collect
- most Collectors (aside from BloomFilter and ImmutableRange*, as those whole classes are @beta (though I did remove the redundant @beta annotation from the Collector-returning methods for clarity))
- Maps: asConverter, immutableEnumMap
- MultimapBuilder
- Streams: stream(Iterable), concat

io
- ByteStreams: copy, toByteArray
- CharStreams: copy, toString
- Files: as(Char|Byte)(Source|Sink)

util.concurrent
- Futures: addCallback, getDone, getUnchecked, immediateCancelledFuture, immediateFailedFuture, immediateFuture
- ListeningScheduledExecutorService
- Uninterruptibles

other
- HtmlEscapers
- Splitter.splitToList
- Ticker

Fixes #3287
Fixes #3251 (aside from ImmutableRange*, but those whole classes are @beta, anyway)
Addresses the main concerns of #3285 but doesn't cover the broader request
Fixes #3340
Partially addresses #3239

RELNOTES=Removed `@Beta` from a number of frequently used APIs.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=232681253
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes status=triaged type=debeta Request to remove something from @Beta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants