Add comment field to ExperimentalApi

This commit is contained in:
Kun Zhang 2015-08-26 10:42:08 -07:00
parent 0d9ac41bdd
commit 8225d2a6a6
3 changed files with 6 additions and 2 deletions

View File

@ -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);

View File

@ -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());

View File

@ -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 "";
}