Not really I guess? Layout already extends Encoder<LogEvent>, and the only 
reasonable return value now is String since byte[] is already covered by 
another method, and ByteBuffer is covered by the Encoder interface. That could 
further simplify things!
—
Matt Sicker

> On Jan 11, 2023, at 14:50, Gary Gregory <garydgreg...@gmail.com> wrote:
> 
> Is the generic needed at all?
> 
> Gary
> 
> On Wed, Jan 11, 2023, 12:19 Matt Sicker <m...@musigma.org> wrote:
> 
>> I’ve opened https://github.com/apache/logging-log4j2/pull/1199 to handle
>> this issue. The vast majority of the changes are from replacing `Layout<?
>> extends Serializable` with just `Layout<?>`. Please take a look and provide
>> any feedback.

Reply via email to