contentBuffer.append(contents.substring(annotationTokenEnd, contents.length()));
final String annotation = contentBuffer.toString();
if (fValidateAnnotations) {
schemaDoc.addAnnotation(new XSAnnotationInfo(annotation, annotationParent));
}
return new XSAnnotationImpl(annotation, grammar);
} else {
if (fValidateAnnotations) {
schemaDoc.addAnnotation(new XSAnnotationInfo(contents, annotationParent));
}
return new XSAnnotationImpl(contents, grammar);
}
}