1 package org.slf4j.helpers; 2 3 import java.util.Map; 4 5 import org.slf4j.spi.MDCAdapter; 6 7 /** 8 * This adapter is an empty implementation of the {@link MDCAdapter} interface. 9 * It is used for all logging systems which do not support mapped 10 * diagnostic contexts such as JDK14, simple and NOP. 11 * 12 * @author Ceki Gülcü 13 * 14 * @since 1.4.1 15 */ 16 public class NOPMakerAdapter implements MDCAdapter { 17 18 public void clear() { 19 } 20 21 public String get(String key) { 22 return null; 23 } 24 25 public void put(String key, String val) { 26 } 27 28 public void remove(String key) { 29 } 30 31 public Map getCopyOfContextMap() { 32 return null; 33 } 34 35 public void setContextMap(Map contextMap) { 36 // NOP 37 } 38 39 }