From ac844a377f7c14b3757c49269f8d6621a3a5a2cb Mon Sep 17 00:00:00 2001 From: "David M. Lloyd" Date: Fri, 3 May 2019 13:20:52 -0500 Subject: [PATCH] [LOGMGR-207] Format steps can only be a part of a multistep formatter --- src/main/java/org/jboss/logmanager/formatters/FormatStep.java | 4 +--- src/main/java/org/jboss/logmanager/formatters/Formatters.java | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/jboss/logmanager/formatters/FormatStep.java b/src/main/java/org/jboss/logmanager/formatters/FormatStep.java index 040ae9b1..e1f39644 100644 --- a/src/main/java/org/jboss/logmanager/formatters/FormatStep.java +++ b/src/main/java/org/jboss/logmanager/formatters/FormatStep.java @@ -21,8 +21,6 @@ import org.jboss.logmanager.ExtLogRecord; -import java.util.logging.Formatter; - /** * A single format step which handles some part of rendering a log record. */ @@ -43,7 +41,7 @@ public interface FormatStep { * @param builder the string builder to append to * @param record the record being rendered */ - default void render(Formatter formatter, StringBuilder builder, ExtLogRecord record) { + default void render(MultistepFormatter formatter, StringBuilder builder, ExtLogRecord record) { render(builder, record); } diff --git a/src/main/java/org/jboss/logmanager/formatters/Formatters.java b/src/main/java/org/jboss/logmanager/formatters/Formatters.java index b81cbe01..8a2d2d15 100644 --- a/src/main/java/org/jboss/logmanager/formatters/Formatters.java +++ b/src/main/java/org/jboss/logmanager/formatters/Formatters.java @@ -191,7 +191,7 @@ public void render(final StringBuilder builder, final ExtLogRecord record) { render(null, builder, record); } - public void render(Formatter formatter, StringBuilder builder, ExtLogRecord record) { + public void render(MultistepFormatter formatter, StringBuilder builder, ExtLogRecord record) { final int minimumWidth = this.minimumWidth; final int maximumWidth = this.maximumWidth; final boolean leftJustify = this.leftJustify;