mirror of https://github.com/grpc/grpc-java.git
Add comment field to ExperimentalApi
This commit is contained in:
parent
0d9ac41bdd
commit
8225d2a6a6
|
|
@ -255,7 +255,7 @@ public final class ChannelImpl extends Channel {
|
|||
*
|
||||
* @see ClientTransport#ping(PingCallback, Executor)
|
||||
*/
|
||||
@ExperimentalApi
|
||||
@ExperimentalApi(comment = "https://github.com/grpc/grpc-java/issues/737")
|
||||
public void ping(final PingCallback callback, final Executor executor) {
|
||||
try {
|
||||
obtainActiveTransport().ping(callback, executor);
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ import javax.annotation.Nullable;
|
|||
* responsibility of the application to ensure that all contexts are properly cancelled.</li>
|
||||
* </ul>
|
||||
*/
|
||||
@ExperimentalApi
|
||||
@ExperimentalApi(comment = "https://github.com/grpc/grpc-java/issues/262")
|
||||
public class Context {
|
||||
|
||||
private static final Logger LOG = Logger.getLogger(Context.class.getName());
|
||||
|
|
|
|||
|
|
@ -60,4 +60,8 @@ import java.lang.annotation.Target;
|
|||
ElementType.TYPE})
|
||||
@Documented
|
||||
public @interface ExperimentalApi {
|
||||
/**
|
||||
* Context information such as links to discussion thread, tracking issue etc.
|
||||
*/
|
||||
String comment() default "";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue