Skip to content

Commit 12ec63a

Browse files
committed
Decrease the visibility of InstantPatternDynamicFormatter
1 parent 9e7f4ce commit 12ec63a

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

log4j-core/src/main/java/org/apache/logging/log4j/core/util/internal/instant/InstantPatternDynamicFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
*
5151
* @since 2.25.0
5252
*/
53-
public final class InstantPatternDynamicFormatter implements InstantPatternFormatter {
53+
final class InstantPatternDynamicFormatter implements InstantPatternFormatter {
5454

5555
static final ChronoUnit PRECISION_THRESHOLD = ChronoUnit.MINUTES;
5656

log4j-perf-test/src/main/java/org/apache/logging/log4j/perf/jmh/instant/InstantPatternDynamicFormatterSequencingBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
/**
3131
* Compares {@link DateTimeFormatter} efficiency for formatting the {@code ss.SSS} singleton versus formatting the {@code ss}, {@code .}, and {@code SSS} sequence.
32-
* This comparison is influential on the sequence merging strategies of {@link org.apache.logging.log4j.core.util.internal.instant.InstantPatternDynamicFormatter}.
32+
* This comparison is influential on the sequence merging strategies of {@code InstantPatternDynamicFormatter}.
3333
*/
3434
@State(Scope.Thread)
3535
public class InstantPatternDynamicFormatterSequencingBenchmark {

log4j-perf-test/src/main/java/org/apache/logging/log4j/perf/jmh/instant/InstantPatternFormatterBenchmark.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import org.apache.logging.log4j.core.time.MutableInstant;
3030
import org.apache.logging.log4j.core.util.datetime.FastDatePrinter;
3131
import org.apache.logging.log4j.core.util.datetime.FixedDateFormat;
32-
import org.apache.logging.log4j.core.util.internal.instant.InstantPatternDynamicFormatter;
3332
import org.apache.logging.log4j.core.util.internal.instant.InstantPatternFormatter;
3433
import org.openjdk.jmh.annotations.Benchmark;
3534
import org.openjdk.jmh.annotations.Scope;
@@ -92,7 +91,7 @@ static <I extends org.apache.logging.log4j.core.time.Instant> void validateInsta
9291
if (TimeUnit.MINUTES.toMillis(1) <= offMillis) {
9392
final String message = String.format(
9493
"instant samples must be of the same week to exploit the `%s` caching",
95-
InstantPatternDynamicFormatter.class.getSimpleName());
94+
InstantPatternFormatter.class.getSimpleName());
9695
throw new IllegalStateException(message);
9796
}
9897
}

0 commit comments

Comments
 (0)