diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/convert/TypeConverters.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/convert/TypeConverters.java index 396dea94a4e..3e005f07c5d 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/convert/TypeConverters.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/convert/TypeConverters.java @@ -32,7 +32,6 @@ import java.nio.file.Paths; import java.security.Provider; import java.security.Security; -import java.time.Duration; import java.util.UUID; import java.util.regex.Pattern; import org.apache.logging.log4j.Level; @@ -226,7 +225,7 @@ public Double convert(final String s) { /** * Converts a {@link String} into a {@link org.apache.logging.log4j.core.appender.rolling.action.Duration}. * @since 2.5 - * @deprecated since 2.24.0 use {@link JavaDurationConverter} + * @deprecated since 2.24.0. A {@link java.time.Duration} converter will be available in 3.0.0. */ @Plugin(name = "Duration", category = CATEGORY) @Deprecated @@ -238,18 +237,6 @@ public org.apache.logging.log4j.core.appender.rolling.action.Duration convert(fi } } - /** - * Converts a {@link String} into a {@link Duration}. - * @since 2.24.0 - */ - @Plugin(name = "JavaDuration", category = CATEGORY) - public static class JavaDurationConverter implements TypeConverter { - @Override - public Duration convert(final String s) { - return Duration.parse(s); - } - } - /** * Converts a {@link String} into a {@link File}. */