private void checkDescriptionVersion(final Issue pIssue) throws IssueParseException {

        final Matcher m = DESCRIPTION_VERSION_PATTERN.matcher(pIssue.getDescription());
        final int version;
        if (m.find()) {
            version = Integer.parseInt(m.group(1));
        } else {
            // default version is 1
            version = 1;
        }
        if (IssueDescriptionUtils.DESCRIPTION_VERSION != version) {
            throw new IssueParseException(String.format(
                    "Issue #%s has unsupported description: %d. Expected version %d ",
                    pIssue.getId(), version, IssueDescriptionUtils.DESCRIPTION_VERSION));
        }
    }
private void checkDescriptionVersion ( final Issue pIssue ) throws IssueParseException { final Matcher m = DESCRIPTION_VERSION_PATTERN . matcher ( pIssue . getDescription ( ) ) ; final int version ; if ( m . find ( ) ) { version = Integer . parseInt ( m . group ( 1 ) ) ; } else { version = 1 ; } if ( IssueDescriptionUtils . DESCRIPTION_VERSION != version ) { throw new IssueParseException ( String . format ( "Issue #%s has unsupported description: %d. Expected version %d " , pIssue . getId ( ) , version , IssueDescriptionUtils . DESCRIPTION_VERSION ) ) ; } }
Checks the description version tag.

@param pIssue
the issue
@throws IssueParseException
the description version tag doesn't describe the expected version
{@link IssueDescriptionUtils#DESCRIPTION_VERSION}