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 32
32
import java .nio .file .Paths ;
33
33
import java .security .Provider ;
34
34
import java .security .Security ;
35
- import java .time .Duration ;
36
35
import java .util .UUID ;
37
36
import java .util .regex .Pattern ;
38
37
import org .apache .logging .log4j .Level ;
@@ -226,7 +225,7 @@ public Double convert(final String s) {
226
225
/**
227
226
* Converts a {@link String} into a {@link org.apache.logging.log4j.core.appender.rolling.action.Duration}.
228
227
* @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.
230
229
*/
231
230
@ Plugin (name = "Duration" , category = CATEGORY )
232
231
@ Deprecated
@@ -238,18 +237,6 @@ public org.apache.logging.log4j.core.appender.rolling.action.Duration convert(fi
238
237
}
239
238
}
240
239
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
-
253
240
/**
254
241
* Converts a {@link String} into a {@link File}.
255
242
*/
You can’t perform that action at this time.
0 commit comments