mirror of https://github.com/grpc/grpc-java.git
api: add nullable annotation to trailersFromThrowable (#7856)
This commit is contained in:
parent
23bb2ebf31
commit
9ba419adc0
|
|
@ -413,6 +413,7 @@ public final class Status {
|
||||||
*
|
*
|
||||||
* @return the trailers or {@code null} if not found.
|
* @return the trailers or {@code null} if not found.
|
||||||
*/
|
*/
|
||||||
|
@Nullable
|
||||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/4683")
|
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/4683")
|
||||||
public static Metadata trailersFromThrowable(Throwable t) {
|
public static Metadata trailersFromThrowable(Throwable t) {
|
||||||
Throwable cause = checkNotNull(t, "t");
|
Throwable cause = checkNotNull(t, "t");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue