public static boolean set ( String value ) { if ( StringUtil . isEmpty ( value ) ) { throw new IllegalArgumentException ( "Can not set an empty msgId. If you want to clear msgId of current context, use clear() instead." ) ; } if ( Objects . equals ( value , MsgIdHolder . get ( ) ) ) { //no need make sure, return false return false ; } else { //overwrite the old value singleton . set0 ( value ) ; return true ; } }
Set the msg id of current context