Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

grpc/grpc-java-api-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Actions Testing

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")

Usage

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.

Examples

Maven

The example ishere

cd examples/mvn compile

Gradle

The example ishere

cd examples/./gradlew compileJava

Bazel

The example ishere

cd examples/bazel build //...

Build and Test

# Compilemvn compile# Testmvntest# Buildmvn build# Publish to Localmvn install

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors5

Languages


[8]ページ先頭

©2009-2025 Movatter.jp