Browse Source

Remove RECORD_COMPONENT target from @DefaultValue

See gh-44984

Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
pull/44979/head
Tran Ngoc Nhan 9 months ago committed by Moritz Halbritter
parent
commit
28bbb3ee10
  1. 4
      spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/DefaultValue.java
  2. 4
      spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/DefaultValue.java

4
spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample/DefaultValue.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-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.
@ -29,7 +29,7 @@ import java.lang.annotation.Target; @@ -29,7 +29,7 @@ import java.lang.annotation.Target;
* @author Stephane Nicoll
* @author Pavel Anisimov
*/
@Target({ ElementType.PARAMETER, ElementType.RECORD_COMPONENT })
@Target({ ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DefaultValue {

4
spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/DefaultValue.java

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-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.
@ -41,7 +41,7 @@ import java.lang.annotation.Target; @@ -41,7 +41,7 @@ import java.lang.annotation.Target;
* @since 2.2.0
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.PARAMETER, ElementType.RECORD_COMPONENT })
@Target({ ElementType.PARAMETER })
@Documented
public @interface DefaultValue {

Loading…
Cancel
Save