Skip to content

Commit ea83bb7

Browse files
committed
Fix test failures
1 parent c2e0dc2 commit ea83bb7

File tree

1 file changed

+3
-3
lines changed
  • log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action

1 file changed

+3
-3
lines changed

log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/action/IfLastModified.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
import org.apache.logging.log4j.core.Core;
2929
import org.apache.logging.log4j.core.config.plugins.Plugin;
3030
import org.apache.logging.log4j.core.config.plugins.PluginBuilderAttribute;
31+
import org.apache.logging.log4j.core.config.plugins.PluginBuilderFactory;
3132
import org.apache.logging.log4j.core.config.plugins.PluginElement;
32-
import org.apache.logging.log4j.core.config.plugins.PluginFactory;
3333
import org.apache.logging.log4j.core.config.plugins.validation.constraints.Required;
3434
import org.apache.logging.log4j.core.util.Clock;
3535
import org.apache.logging.log4j.core.util.ClockFactory;
@@ -106,7 +106,7 @@ public String toString() {
106106
/**
107107
* @since 2.24.0
108108
*/
109-
@PluginFactory
109+
@PluginBuilderFactory
110110
public static Builder newBuilder() {
111111
return new Builder();
112112
}
@@ -134,7 +134,7 @@ public Builder setNestedConditions(final PathCondition... nestedConditions) {
134134

135135
@Override
136136
public IfLastModified build() {
137-
return isValid() ? new IfLastModified(age, nestedConditions) : null;
137+
return isValid() ? new IfLastModified(Duration.ofMillis(age.toMillis()), nestedConditions) : null;
138138
}
139139
}
140140
}

0 commit comments

Comments
 (0)