-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade the deprecated apis for spring cloud azure 5.0 #31543
Upgrade the deprecated apis for spring cloud azure 5.0 #31543
Conversation
…sorClientBuilder.retry()
API change check APIView has identified API level changes in this PR and created following API reviews. spring-integration-azure-core |
…deprecated APIs, because there's no replacement available for the API 'com.nimbusds.jose.jwk.RSAKey.Builder.x509CertThumbprint'
@@ -48,6 +48,8 @@ public class DefaultMessageHandler extends AbstractMessageProducingHandler { | |||
private final String destination; | |||
private final SendOperation sendOperation; | |||
private boolean sync = false; | |||
|
|||
@SuppressWarnings("deprecation") | |||
private ListenableFutureCallback<Void> sendCallback; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We will refer to the ListenableFutureCallback
usage from here https://github.com/spring-projects/spring-framework/blob/v6.0.0-RC2/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/DeferredResultMethodReturnValueHandler.java#L79-L92
...n/java/com/azure/spring/cloud/autoconfigure/aad/AadWebApplicationHttpSecurityConfigurer.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/azure/spring/cloud/autoconfigure/aad/implementation/jwt/AadJwtEncoder.java
Show resolved
Hide resolved
@@ -39,7 +38,7 @@ public Resource retrieveResource(URL url) throws IOException { | |||
HttpHeaders headers = new HttpHeaders(); | |||
headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON, APPLICATION_JWK_SET_JSON)); | |||
ResponseEntity<String> response = getResponse(url, headers); | |||
if (response.getStatusCodeValue() != HttpStatus.OK.value()) { | |||
if (response.getStatusCode().isError()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get it.
Also fixed the issue #31716 in Spring Cloud Azure 5.x |
Fixes #31330
Upgrade the deprecated APIs of Spring and Azure SDKs.