You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2022/02/21 21:32:42 UTC

[GitHub] [logging-log4j2] dfa1 commented on a change in pull request #769: Slf4j binding minor cleanups

dfa1 commented on a change in pull request #769:
URL: https://github.com/apache/logging-log4j2/pull/769#discussion_r811438451



##########
File path: log4j-slf4j-impl/src/main/java/org/apache/logging/slf4j/Log4jMDCAdapter.java
##########
@@ -52,8 +52,7 @@ public void clear() {
     }
 
     @Override
-    @SuppressWarnings("unchecked") // nothing we can do about this, restricted by SLF4J API
-    public void setContextMap(@SuppressWarnings("rawtypes") final Map map) {
+    public void setContextMap(final Map<String, String> map) {

Review comment:
       thanks for your time! :-) 
   
   Given that SLF4J interface is: 
   ```
       public void setContextMap(Map<String, String> contextMap);
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org