File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 28
28
import org .apache .logging .log4j .core .Core ;
29
29
import org .apache .logging .log4j .core .config .plugins .Plugin ;
30
30
import org .apache .logging .log4j .core .config .plugins .PluginBuilderAttribute ;
31
+ import org .apache .logging .log4j .core .config .plugins .PluginBuilderFactory ;
31
32
import org .apache .logging .log4j .core .config .plugins .PluginElement ;
32
- import org .apache .logging .log4j .core .config .plugins .PluginFactory ;
33
33
import org .apache .logging .log4j .core .config .plugins .validation .constraints .Required ;
34
34
import org .apache .logging .log4j .core .util .Clock ;
35
35
import org .apache .logging .log4j .core .util .ClockFactory ;
@@ -106,7 +106,7 @@ public String toString() {
106
106
/**
107
107
* @since 2.24.0
108
108
*/
109
- @ PluginFactory
109
+ @ PluginBuilderFactory
110
110
public static Builder newBuilder () {
111
111
return new Builder ();
112
112
}
@@ -134,7 +134,7 @@ public Builder setNestedConditions(final PathCondition... nestedConditions) {
134
134
135
135
@ Override
136
136
public IfLastModified build () {
137
- return isValid () ? new IfLastModified (age , nestedConditions ) : null ;
137
+ return isValid () ? new IfLastModified (Duration . ofMillis ( age . toMillis ()) , nestedConditions ) : null ;
138
138
}
139
139
}
140
140
}
You can’t perform that action at this time.
0 commit comments