Skip to content

Commit

Permalink
Make parentLoggingMdcContext typing more restrictive (from `Map<?, …
Browse files Browse the repository at this point in the history
…?>` to `Map<String, String>`) to be compatible with with latest version of slf4j which now defines `MDC.getCopyOfContextMap()` as `Map<String, String>`.

Since the typing is more restrictive, this change should be backwards compatible with older versions of the slf4j api code.
  • Loading branch information
bigjosh committed Jan 24, 2016
1 parent e70b7dd commit 17b3027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/subethamail/smtp/server/Session.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class Session implements Runnable, MessageContext
* thread is the one which calls the constructor. MDC is usually inherited
* by new threads, but this mechanism does not work with executors.
*/
private final Map<?, ?> parentLoggingMdcContext = MDC.getCopyOfContextMap();
private final Map<String, String> parentLoggingMdcContext = MDC.getCopyOfContextMap();

/**
* Uniquely identifies this session within an extended time period, useful
Expand Down

0 comments on commit 17b3027

Please sign in to comment.