File tree Expand file tree Collapse file tree 1 file changed +1
-14
lines changed
log4j-core/src/main/java/org/apache/logging/log4j/core/config/plugins/convert Expand file tree Collapse file tree 1 file changed +1
-14
lines changed Original file line number Diff line number Diff line change 3232import java .nio .file .Paths ;
3333import java .security .Provider ;
3434import java .security .Security ;
35- import java .time .Duration ;
3635import java .util .UUID ;
3736import java .util .regex .Pattern ;
3837import org .apache .logging .log4j .Level ;
@@ -226,7 +225,7 @@ public Double convert(final String s) {
226225 /**
227226 * Converts a {@link String} into a {@link org.apache.logging.log4j.core.appender.rolling.action.Duration}.
228227 * @since 2.5
229- * @deprecated since 2.24.0 use {@link JavaDurationConverter}
228+ * @deprecated since 2.24.0. A {@link java.time.Duration} converter will be available in 3.0.0.
230229 */
231230 @ Plugin (name = "Duration" , category = CATEGORY )
232231 @ Deprecated
@@ -238,18 +237,6 @@ public org.apache.logging.log4j.core.appender.rolling.action.Duration convert(fi
238237 }
239238 }
240239
241- /**
242- * Converts a {@link String} into a {@link Duration}.
243- * @since 2.24.0
244- */
245- @ Plugin (name = "JavaDuration" , category = CATEGORY )
246- public static class JavaDurationConverter implements TypeConverter <Duration > {
247- @ Override
248- public Duration convert (final String s ) {
249- return Duration .parse (s );
250- }
251- }
252-
253240 /**
254241 * Converts a {@link String} into a {@link File}.
255242 */
You can’t perform that action at this time.
0 commit comments