Skip to content

Commit

Permalink
[cleanup][broker] Update deprecation warnings to use 3.0.0 (#19586)
Browse files Browse the repository at this point in the history
### Motivation

With #19573, we should replace deprecation warnings that were set to 2.12.0 with 3.0.0.

### Modifications

* Update 4 deprecation warnings.

### Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

### Does this pull request potentially affect one of the following parts:

This is cosmetic.

### Documentation

- [x] `doc`

This is a documentation change.

### Matching PR in forked repository

PR in forked repository: skipping forked PR since this is a trivial change
  • Loading branch information
michaeljmarshall authored Feb 22, 2023
1 parent b38556a commit fb7f14c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ default AuthenticationState newAuthState(AuthData authData,
* an {@link AuthenticationDataSource} that was added as the {@link AuthenticatedDataAttributeName} attribute to
* the http request. Removing this method removes an unnecessary step in the authentication flow.</p>
*/
@Deprecated(since = "2.12.0")
@Deprecated(since = "3.0.0")
default AuthenticationState newHttpAuthState(HttpServletRequest request)
throws AuthenticationException {
return new OneStageAuthenticationState(request, this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public boolean authenticateHttpRequest(HttpServletRequest request, HttpServletRe
/**
* @deprecated use {@link #authenticateHttpRequest(HttpServletRequest, HttpServletResponse)}
*/
@Deprecated(since = "2.12.0")
@Deprecated(since = "3.0.0")
public String authenticateHttpRequest(HttpServletRequest request, AuthenticationDataSource authData)
throws AuthenticationException {
String authMethodName = getAuthMethodName(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public CompletableFuture<AuthData> authenticateAsync(AuthData authData) {
/**
* @deprecated use {@link #authenticateAsync(AuthData)}
*/
@Deprecated(since = "2.12.0")
@Deprecated(since = "3.0.0")
@Override
public AuthData authenticate(AuthData authData) throws AuthenticationException {
try {
Expand All @@ -120,7 +120,7 @@ public AuthData authenticate(AuthData authData) throws AuthenticationException {
* @deprecated rely on result from {@link #authenticateAsync(AuthData)}. For more information, see the Javadoc
* for {@link AuthenticationState#isComplete()}.
*/
@Deprecated(since = "2.12.0")
@Deprecated(since = "3.0.0")
@Override
public boolean isComplete() {
return authRole != null;
Expand Down

0 comments on commit fb7f14c

Please sign in to comment.