public static void join(DetachedBaggage otherBaggage){
  if (otherBaggage == null || otherBaggage.impl == null) {
    return;
  }
  BaggageImpl impl=current.get();
  if (impl == null) {
    current.set(otherBaggage.impl);
  }
 else {
    impl.merge(otherBaggage.impl);
  }
  otherBaggage.impl=null;
}

public static void join ( DetachedBaggage otherBaggage ) { if ( otherBaggage == null || otherBaggage . impl == null ) { return ; } BaggageImpl impl = current . get ( ) ; if ( impl == null ) { current . set ( otherBaggage . impl ) ; } else { impl . merge ( otherBaggage . impl ) ; } otherBaggage . impl = null ; }
merge the contents of the provided baggage into the current thread ' s baggage . after this call completes , the thread ' s current baggage will contain all previous contents plus the contents of the other baggage . the contents of the other detachedbaggage will be removed , so the detachedbaggage should now be discarded .
