if (attributeMetaDesc.getDataType() instanceof PrimitiveBooleanType) {
String attributeName = attributeMetaDesc.getAttributeName();
if (booleanAttributeNames.contains(attributeName)) {
if (classDeclaration
.equals(fieldDeclaration.getDeclaringType())) {
throw new ValidationException(
MessageCode.SLIM3GEN1043,
env,
fieldDeclaration.getPosition(),
fieldDeclaration.getSimpleName());
}
throw new ValidationException(
MessageCode.SLIM3GEN1044,
env,
classDeclaration.getPosition(),
fieldDeclaration.getSimpleName(),
fieldDeclaration.getDeclaringType().getQualifiedName());