- Notifications
You must be signed in to change notification settings - Fork17
License
NotificationsYou must be signed in to change notification settings
grpc/grpc-java-api-checker
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
An Error Prone plugin that checks for usages of grpc-java APIs that are annotated with@ExperimentalApi or@Internal.
NOTE: grpc-java-api-checker works with grpc-java version 1.10.0 or greater.
The error examples:
src/main/java/com/example/App.java:10: error: [GrpcInternal] @Internal should not be used in application code System.out.println(InternalStatus.MESSAGE_KEY); ^ (see https://github.com/grpc/grpc-java)src/main/java/com/example/App.java:11: error: [GrpcExperimentalApi] @ExperimentalApi should not be used in application code System.out.println(Grpc.TRANSPORT_ATTR_REMOTE_ADDR); ^ (see "https://github.com/grpc/grpc-java/issues/1710")Using the grpc-java-api-checker requires configuring your project to build with the Error Prone Java compiler.You can see the Error Prone documentshere.
The example ishere
cd examples/mvn compileThe example ishere
cd examples/./gradlew compileJavaThe example ishere
cd examples/bazel build //...# Compilemvn compile# Testmvntest# Buildmvn build# Publish to Localmvn install
About
No description, website, or topics provided.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors5
Uh oh!
There was an error while loading.Please reload this page.