Skip to content

Commit

Permalink
add type information to LayoutWrappingEncoder in IRelpAppenderConfig (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kortemik authored Nov 28, 2024
1 parent 37853f9 commit 73342f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/teragrep/jla_01/IRelpAppenderConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Reliable Event Logging Protocol (RELP) Logback plugin
* @param <E>
*/
public interface IRelpAppenderConfig<E> {
void setEncoder(LayoutWrappingEncoder encoder);
void setEncoder(LayoutWrappingEncoder<E> encoder);

void setSender(RelpConnection sender);

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/teragrep/jla_01/RlpLogbackAppender.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class RlpLogbackAppender<E> extends AppenderBase<E> implements IRelpAppen
// see also https://stackoverflow.com/questions/31415899/correct-way-to-stop-custom-logback-async-appender

private RelpConnection sender;
private LayoutWrappingEncoder encoder;
private LayoutWrappingEncoder<E> encoder;

// settings for syslog messages
private boolean enableEventId48577;
Expand Down Expand Up @@ -72,7 +72,7 @@ public class RlpLogbackAppender<E> extends AppenderBase<E> implements IRelpAppen


@Override
public void setEncoder(LayoutWrappingEncoder encoder) {
public void setEncoder(LayoutWrappingEncoder<E> encoder) {
this.encoder = encoder;
}

Expand Down

0 comments on commit 73342f0

Please sign in to comment.