logback-android/src/main/java/ch/qos/logback/classic/util/LogbackMDCAdapter.java
public void remove(String key) {
    if (key == null) {
      return;
    }
    Map<String, String> oldMap = copyOnThreadLocal.get();
    if (oldMap == null) return;

    Integer lastOp = getAndSetLastOperation(WRITE_OPERATION);

    if (wasLastOpReadOrNull(lastOp)) {
      Map<String, String> newMap = duplicateAndInsertNewMap(oldMap);
      newMap.remove(key);
    } else {
      oldMap.remove(key);
    }
  }
public void remove(String key) {
    if (key == null) {
      return;
    }
    Map<String, String> oldMap = copyOnThreadLocal.get();
    if (oldMap == null) return;

    Integer lastOp = getAndSetLastOperation(WRITE_OPERATION);

    if (wasLastOpReadOrNull(lastOp)) {
      Map<String, String> newMap = duplicateAndInsertNewMap(oldMap);
      newMap.remove(key);
    } else {
      oldMap.remove(key);
    }
  }
public void remove ( String key ) { if ( key == null ) { return ; } Map < String , String > oldMap = copyOnThreadLocal . get ( ) ; if ( oldMap == null ) return ; Integer lastOp = getAndSetLastOperation ( WRITE_OPERATION ) ; if ( wasLastOpReadOrNull ( lastOp ) ) { Map < String , String > newMap = duplicateAndInsertNewMap ( oldMap ) ; newMap . remove ( key ) ; } else { oldMap . remove ( key ) ; } }
Remove the the context identified by the <code>key</code> parameter.
Remove the the context identified by the <code > key< / code > parameter .