aboutsummaryrefslogtreecommitdiff
path: root/checker-framework/stubs/grpc.astub
diff options
context:
space:
mode:
Diffstat (limited to 'checker-framework/stubs/grpc.astub')
-rw-r--r--checker-framework/stubs/grpc.astub12
1 files changed, 12 insertions, 0 deletions
diff --git a/checker-framework/stubs/grpc.astub b/checker-framework/stubs/grpc.astub
new file mode 100644
index 00000000..f8581eba
--- /dev/null
+++ b/checker-framework/stubs/grpc.astub
@@ -0,0 +1,12 @@
+package io.grpc;
+
+import org.checkerframework.checker.nullness.qual.Nullable;
+
+class Context {
+ static <T> Key<@Nullable T> key(String name);
+ static <T> Key<T> keyWithDefault(String name, T defaultValue);
+ class Key<T> {
+ T get(Context context);
+ T get();
+ }
+}