Skip to content

Commit e43427b

Browse files
committed
Fix the build
``` Execution failed for task ':spring-boot-project:spring-boot-autoconfigure:compileJava'. > Compilation failed; see the compiler output below. error: warnings found and -Werror specified/home/runner/work/spring-boot/spring-boot/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/resource/reactive/ReactiveOAuth2ResourceServerOpaqueTokenConfiguration.java:49: warning: [removal] SpringReactiveOpaqueTokenIntrospector(String,String,String) in SpringReactiveOpaqueTokenIntrospector has been deprecated and marked for removal return new SpringReactiveOpaqueTokenIntrospector(opaqueToken.getIntrospectionUri(), ^ /home/runner/work/spring-boot/spring-boot/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/resource/servlet/OAuth2ResourceServerOpaqueTokenConfiguration.java:51: warning: [removal] SpringOpaqueTokenIntrospector(String,String,String) in SpringOpaqueTokenIntrospector has been deprecated and marked for removal return new SpringOpaqueTokenIntrospector(opaqueToken.getIntrospectionUri(), opaqueToken.getClientId(), ^ 1 error 2 warnings ``` Signed-off-by: Yanming Zhou <[email protected]>
1 parent 6957557 commit e43427b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/resource/reactive/ReactiveOAuth2ResourceServerOpaqueTokenConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -42,6 +42,7 @@ class ReactiveOAuth2ResourceServerOpaqueTokenConfiguration {
4242
@ConditionalOnMissingBean(ReactiveOpaqueTokenIntrospector.class)
4343
static class OpaqueTokenIntrospectionClientConfiguration {
4444

45+
@SuppressWarnings("removal")
4546
@Bean
4647
@ConditionalOnProperty(name = "spring.security.oauth2.resourceserver.opaquetoken.introspection-uri")
4748
SpringReactiveOpaqueTokenIntrospector opaqueTokenIntrospector(OAuth2ResourceServerProperties properties) {

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/oauth2/resource/servlet/OAuth2ResourceServerOpaqueTokenConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2023 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -44,6 +44,7 @@ class OAuth2ResourceServerOpaqueTokenConfiguration {
4444
@ConditionalOnMissingBean(OpaqueTokenIntrospector.class)
4545
static class OpaqueTokenIntrospectionClientConfiguration {
4646

47+
@SuppressWarnings("removal")
4748
@Bean
4849
@ConditionalOnProperty(name = "spring.security.oauth2.resourceserver.opaquetoken.introspection-uri")
4950
SpringOpaqueTokenIntrospector opaqueTokenIntrospector(OAuth2ResourceServerProperties properties) {

0 commit comments

Comments
 (0)