Skip to content

Commit fb7f14c

Browse files
[cleanup][broker] Update deprecation warnings to use 3.0.0 (#19586)
### 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
1 parent b38556a commit fb7f14c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authentication/AuthenticationProvider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ default AuthenticationState newAuthState(AuthData authData,
114114
* an {@link AuthenticationDataSource} that was added as the {@link AuthenticatedDataAttributeName} attribute to
115115
* the http request. Removing this method removes an unnecessary step in the authentication flow.</p>
116116
*/
117-
@Deprecated(since = "2.12.0")
117+
@Deprecated(since = "3.0.0")
118118
default AuthenticationState newHttpAuthState(HttpServletRequest request)
119119
throws AuthenticationException {
120120
return new OneStageAuthenticationState(request, this);

pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authentication/AuthenticationService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public boolean authenticateHttpRequest(HttpServletRequest request, HttpServletRe
158158
/**
159159
* @deprecated use {@link #authenticateHttpRequest(HttpServletRequest, HttpServletResponse)}
160160
*/
161-
@Deprecated(since = "2.12.0")
161+
@Deprecated(since = "3.0.0")
162162
public String authenticateHttpRequest(HttpServletRequest request, AuthenticationDataSource authData)
163163
throws AuthenticationException {
164164
String authMethodName = getAuthMethodName(request);

pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authentication/OneStageAuthenticationState.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public CompletableFuture<AuthData> authenticateAsync(AuthData authData) {
106106
/**
107107
* @deprecated use {@link #authenticateAsync(AuthData)}
108108
*/
109-
@Deprecated(since = "2.12.0")
109+
@Deprecated(since = "3.0.0")
110110
@Override
111111
public AuthData authenticate(AuthData authData) throws AuthenticationException {
112112
try {
@@ -120,7 +120,7 @@ public AuthData authenticate(AuthData authData) throws AuthenticationException {
120120
* @deprecated rely on result from {@link #authenticateAsync(AuthData)}. For more information, see the Javadoc
121121
* for {@link AuthenticationState#isComplete()}.
122122
*/
123-
@Deprecated(since = "2.12.0")
123+
@Deprecated(since = "3.0.0")
124124
@Override
125125
public boolean isComplete() {
126126
return authRole != null;

0 commit comments

Comments
 (0)