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 <[email protected]> AuthorDate: Sat Mar 18 18:58:57 2023 -0500 Add more allowed targets for TypeConverters annotation Signed-off-by: Matt Sicker <[email protected]> --- .../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 {
