if (defaultDescriptor.getType().equals(JSCommonTypeNames.ARRAY_CLASS_NAME) && defaultDescriptor.getArrayType() != null) {
final String elementType = defaultDescriptor.getArrayType();
final boolean isString = elementType.equals(JSCommonTypeNames.STRING_CLASS_NAME);
if (isString) {
if (childDescriptor != null && !childDescriptor.getQualifiedName().equals(JSCommonTypeNames.STRING_CLASS_NAME)) {
<BUG>problemsHolder.add(FlexUIDesignerBundle.message("error.children.must.be", tag.getName(), elementType, getLineNumber(tag)));
</BUG>
return -1;
}
}

if (defaultDescriptor.getType().equals(JSCommonTypeNames.ARRAY_CLASS_NAME) && defaultDescriptor.getArrayType() != null) {
final String elementType = defaultDescriptor.getArrayType();
final boolean isString = elementType.equals(JSCommonTypeNames.STRING_CLASS_NAME);
if (isString) {
if (childDescriptor != null && !childDescriptor.getQualifiedName().equals(JSCommonTypeNames.STRING_CLASS_NAME)) {
addProblem("error.children.must.be", tag.getLocalName(), elementType, getLineNumber(tag));
return -1;
}
}
