Browse Source

Add Override annotation

Closes gh-1878

Signed-off-by: Loren <cn.luowenjie@qq.com>
Loren 7 tháng trước cách đây
mục cha
commit
1f28280e7b
9 tập tin đã thay đổi với 18 bổ sung9 xóa
  1. 2 1
      oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2AccessTokenAuthenticationContext.java
  2. 2 1
      oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2AuthorizationCodeRequestAuthenticationContext.java
  3. 2 1
      oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2AuthorizationConsentAuthenticationContext.java
  4. 2 1
      oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2ClientAuthenticationContext.java
  5. 2 1
      oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2ClientCredentialsAuthenticationContext.java
  6. 2 1
      oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/oidc/authentication/OidcUserInfoAuthenticationContext.java
  7. 2 1
      oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/token/DefaultOAuth2TokenContext.java
  8. 2 1
      oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/token/JwtEncodingContext.java
  9. 2 1
      oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/token/OAuth2TokenClaimsContext.java

+ 2 - 1
oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2AccessTokenAuthenticationContext.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2020-2024 the original author or authors.
+ * Copyright 2020-2025 the original author or authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -100,6 +100,7 @@ public final class OAuth2AccessTokenAuthenticationContext implements OAuth2Authe
 		 * Builds a new {@link OAuth2AccessTokenAuthenticationContext}.
 		 * @return the {@link OAuth2AccessTokenAuthenticationContext}
 		 */
+		@Override
 		public OAuth2AccessTokenAuthenticationContext build() {
 			Assert.notNull(get(OAuth2AccessTokenResponse.Builder.class), "accessTokenResponse cannot be null");
 			return new OAuth2AccessTokenAuthenticationContext(getContext());

+ 2 - 1
oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2AuthorizationCodeRequestAuthenticationContext.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2020-2024 the original author or authors.
+ * Copyright 2020-2025 the original author or authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -142,6 +142,7 @@ public final class OAuth2AuthorizationCodeRequestAuthenticationContext implement
 		 * Builds a new {@link OAuth2AuthorizationCodeRequestAuthenticationContext}.
 		 * @return the {@link OAuth2AuthorizationCodeRequestAuthenticationContext}
 		 */
+		@Override
 		public OAuth2AuthorizationCodeRequestAuthenticationContext build() {
 			Assert.notNull(get(RegisteredClient.class), "registeredClient cannot be null");
 			return new OAuth2AuthorizationCodeRequestAuthenticationContext(getContext());

+ 2 - 1
oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2AuthorizationConsentAuthenticationContext.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2020-2023 the original author or authors.
+ * Copyright 2020-2025 the original author or authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -155,6 +155,7 @@ public final class OAuth2AuthorizationConsentAuthenticationContext implements OA
 		 * Builds a new {@link OAuth2AuthorizationConsentAuthenticationContext}.
 		 * @return the {@link OAuth2AuthorizationConsentAuthenticationContext}
 		 */
+		@Override
 		public OAuth2AuthorizationConsentAuthenticationContext build() {
 			Assert.notNull(get(OAuth2AuthorizationConsent.Builder.class), "authorizationConsentBuilder cannot be null");
 			Assert.notNull(get(RegisteredClient.class), "registeredClient cannot be null");

+ 2 - 1
oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2ClientAuthenticationContext.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2020-2024 the original author or authors.
+ * Copyright 2020-2025 the original author or authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -96,6 +96,7 @@ public final class OAuth2ClientAuthenticationContext implements OAuth2Authentica
 		 * Builds a new {@link OAuth2ClientAuthenticationContext}.
 		 * @return the {@link OAuth2ClientAuthenticationContext}
 		 */
+		@Override
 		public OAuth2ClientAuthenticationContext build() {
 			Assert.notNull(get(RegisteredClient.class), "registeredClient cannot be null");
 			return new OAuth2ClientAuthenticationContext(getContext());

+ 2 - 1
oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/authentication/OAuth2ClientCredentialsAuthenticationContext.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2020-2024 the original author or authors.
+ * Copyright 2020-2025 the original author or authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -96,6 +96,7 @@ public final class OAuth2ClientCredentialsAuthenticationContext implements OAuth
 		 * Builds a new {@link OAuth2ClientCredentialsAuthenticationContext}.
 		 * @return the {@link OAuth2ClientCredentialsAuthenticationContext}
 		 */
+		@Override
 		public OAuth2ClientCredentialsAuthenticationContext build() {
 			Assert.notNull(get(RegisteredClient.class), "registeredClient cannot be null");
 			return new OAuth2ClientCredentialsAuthenticationContext(getContext());

+ 2 - 1
oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/oidc/authentication/OidcUserInfoAuthenticationContext.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2020-2022 the original author or authors.
+ * Copyright 2020-2025 the original author or authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -116,6 +116,7 @@ public final class OidcUserInfoAuthenticationContext implements OAuth2Authentica
 		 * Builds a new {@link OidcUserInfoAuthenticationContext}.
 		 * @return the {@link OidcUserInfoAuthenticationContext}
 		 */
+		@Override
 		public OidcUserInfoAuthenticationContext build() {
 			Assert.notNull(get(OAuth2AccessToken.class), "accessToken cannot be null");
 			Assert.notNull(get(OAuth2Authorization.class), "authorization cannot be null");

+ 2 - 1
oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/token/DefaultOAuth2TokenContext.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2020-2022 the original author or authors.
+ * Copyright 2020-2025 the original author or authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -70,6 +70,7 @@ public final class DefaultOAuth2TokenContext implements OAuth2TokenContext {
 		 * Builds a new {@link DefaultOAuth2TokenContext}.
 		 * @return the {@link DefaultOAuth2TokenContext}
 		 */
+		@Override
 		public DefaultOAuth2TokenContext build() {
 			return new DefaultOAuth2TokenContext(getContext());
 		}

+ 2 - 1
oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/token/JwtEncodingContext.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2020-2022 the original author or authors.
+ * Copyright 2020-2025 the original author or authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -102,6 +102,7 @@ public final class JwtEncodingContext implements OAuth2TokenContext {
 		 * Builds a new {@link JwtEncodingContext}.
 		 * @return the {@link JwtEncodingContext}
 		 */
+		@Override
 		public JwtEncodingContext build() {
 			return new JwtEncodingContext(getContext());
 		}

+ 2 - 1
oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/token/OAuth2TokenClaimsContext.java

@@ -1,5 +1,5 @@
 /*
- * Copyright 2020-2022 the original author or authors.
+ * Copyright 2020-2025 the original author or authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -84,6 +84,7 @@ public final class OAuth2TokenClaimsContext implements OAuth2TokenContext {
 		 * Builds a new {@link OAuth2TokenClaimsContext}.
 		 * @return the {@link OAuth2TokenClaimsContext}
 		 */
+		@Override
 		public OAuth2TokenClaimsContext build() {
 			return new OAuth2TokenClaimsContext(getContext());
 		}