Remove RECORD_COMPONENT target from @DefaultValue
See gh-44984 Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
This commit is contained in:
parent
e87d5d7a41
commit
28bbb3ee10
|
|
@ -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;
|
|||
* @author Stephane Nicoll
|
||||
* @author Pavel Anisimov
|
||||
*/
|
||||
@Target({ ElementType.PARAMETER, ElementType.RECORD_COMPONENT })
|
||||
@Target({ ElementType.PARAMETER })
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Documented
|
||||
public @interface DefaultValue {
|
||||
|
|
|
|||
|
|
@ -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;
|
|||
* @since 2.2.0
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target({ ElementType.PARAMETER, ElementType.RECORD_COMPONENT })
|
||||
@Target({ ElementType.PARAMETER })
|
||||
@Documented
|
||||
public @interface DefaultValue {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue