api: add nullable annotation to trailersFromThrowable (#7856)

This commit is contained in:
Serhii Zabelnykov 2021-02-09 08:39:38 +01:00 committed by GitHub
parent 23bb2ebf31
commit 9ba419adc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -413,6 +413,7 @@ public final class Status {
*
* @return the trailers or {@code null} if not found.
*/
@Nullable
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/4683")
public static Metadata trailersFromThrowable(Throwable t) {
Throwable cause = checkNotNull(t, "t");