Skip to content

Commit

Permalink
api: add nullable annotation to trailersFromThrowable (#7856)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReginFell committed Feb 9, 2021
1 parent 23bb2eb commit 9ba419a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/src/main/java/io/grpc/Status.java
Expand Up @@ -413,6 +413,7 @@ public static Status fromThrowable(Throwable t) {
*
* @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");
Expand Down

0 comments on commit 9ba419a

Please sign in to comment.