main/src/main/java/org/onap/policy/pap/main/comm/msgdata/RequestImpl.java
/**
     * Replaces the current token with a new token.
     * @param newToken the new token
     */
Replaces the current token with a new token.
@param newToken the new token
Replaces the current token with a new token . @param newToken the new token
private void replaceToken(QueueToken<PdpMessage> newToken) {
        if (newToken != null) {
            if (token == null) {
                token = newToken;
            } else if (token != newToken) {
                newToken.replaceItem(null);
            }
        }
    }
private void replaceToken ( QueueToken < PdpMessage > newToken ) { if ( newToken != null ) { if ( token == null ) { token = newToken ; } else if ( token != newToken ) { newToken . replaceItem ( null ) ; } } }
Replaces the current token with a new token.
Replaces the current token with a new token .
// already have a token - discard the new token