Skip to content

Commit 7cde473

Browse files
authored
core/auth: Remove CallCredentials2 (#8464)
- Removes CallCredentials2 - Removes CallCredentials2ApplyingTest - Adds two tests from CallCredentials2ApplyingTest to CallCredentialsApplyingTest - Updates GoogleAuthLibraryCallCredentials to extend from CallCredentials instead of CallCredentials2
1 parent 4fa612a commit 7cde473

4 files changed

Lines changed: 47 additions & 428 deletions

File tree

api/src/main/java/io/grpc/CallCredentials2.java

Lines changed: 0 additions & 73 deletions
This file was deleted.

auth/src/main/java/io/grpc/auth/GoogleAuthLibraryCallCredentials.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,9 @@
4242
import javax.annotation.Nullable;
4343

4444
/**
45-
* Wraps {@link Credentials} as a {@link CallCredentials}.
45+
* Wraps {@link Credentials} as a {@link io.grpc.CallCredentials}.
4646
*/
47-
// TODO(zhangkun83): remove the suppression after we change the base class to CallCredential
48-
@SuppressWarnings("deprecation")
49-
final class GoogleAuthLibraryCallCredentials extends io.grpc.CallCredentials2 {
47+
final class GoogleAuthLibraryCallCredentials extends io.grpc.CallCredentials {
5048
private static final Logger log
5149
= Logger.getLogger(GoogleAuthLibraryCallCredentials.class.getName());
5250
private static final JwtHelper jwtHelper

0 commit comments

Comments
 (0)