Skip to content

Commit ce7c1c2

Browse files
committed
Merge pull request #44984 from ngocnhan-tran1996
* pr/44984: Remove RECORD_COMPONENT target from @DefaultValue Closes gh-44984
2 parents e87d5d7 + 28bbb3e commit ce7c1c2

File tree

2 files changed

+4
-4
lines changed
  • spring-boot-project
    • spring-boot/src/main/java/org/springframework/boot/context/properties/bind
    • spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationsample

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 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.
@@ -29,7 +29,7 @@
2929
* @author Stephane Nicoll
3030
* @author Pavel Anisimov
3131
*/
32-
@Target({ ElementType.PARAMETER, ElementType.RECORD_COMPONENT })
32+
@Target({ ElementType.PARAMETER })
3333
@Retention(RetentionPolicy.RUNTIME)
3434
@Documented
3535
public @interface DefaultValue {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 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.
@@ -41,7 +41,7 @@
4141
* @since 2.2.0
4242
*/
4343
@Retention(RetentionPolicy.RUNTIME)
44-
@Target({ ElementType.PARAMETER, ElementType.RECORD_COMPONENT })
44+
@Target({ ElementType.PARAMETER })
4545
@Documented
4646
public @interface DefaultValue {
4747

0 commit comments

Comments
 (0)