You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2023/03/19 00:28:38 UTC
[logging-log4j2] 01/03: Add more allowed targets for TypeConverters annotation
This is an automated email from the ASF dual-hosted git repository.
mattsicker pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit a1581dad97fca59e8fe099efa02a2cb1bde4c394
Author: Matt Sicker <ma...@apache.org>
AuthorDate: Sat Mar 18 18:58:57 2023 -0500
Add more allowed targets for TypeConverters annotation
Signed-off-by: Matt Sicker <ma...@apache.org>
---
.../org/apache/logging/log4j/plugins/convert/TypeConverters.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/log4j-plugins/src/main/java/org/apache/logging/log4j/plugins/convert/TypeConverters.java b/log4j-plugins/src/main/java/org/apache/logging/log4j/plugins/convert/TypeConverters.java
index 821d052212..5768bc7347 100644
--- a/log4j-plugins/src/main/java/org/apache/logging/log4j/plugins/convert/TypeConverters.java
+++ b/log4j-plugins/src/main/java/org/apache/logging/log4j/plugins/convert/TypeConverters.java
@@ -14,22 +14,21 @@
* See the license for the specific language governing permissions and
* limitations under the license.
*/
-
package org.apache.logging.log4j.plugins.convert;
-import org.apache.logging.log4j.plugins.Namespace;
-
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
+import org.apache.logging.log4j.plugins.Namespace;
+
/**
* Plugin namespace for {@link TypeConverter} plugins.
*/
@Retention(RetentionPolicy.RUNTIME)
-@Target({ElementType.TYPE, ElementType.TYPE_USE})
+@Target({ElementType.TYPE, ElementType.TYPE_USE, ElementType.PARAMETER, ElementType.METHOD, ElementType.FIELD})
@Documented
@Namespace("TypeConverter")
public @interface TypeConverters {