Skip to content

Commit 382298b

Browse files
committed
DEVX-640: adding comment for AttributeNestedType
1 parent 7ba4575 commit 382298b

File tree

1 file changed

+1
-9
lines changed
  • commercetools/commercetools-importapi-utils/src/main/java/com/commercetools/sdk

1 file changed

+1
-9
lines changed

commercetools/commercetools-importapi-utils/src/main/java/com/commercetools/sdk/ProductUtil.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -323,15 +323,7 @@ private static Attribute mapAttribute(com.commercetools.api.models.product.Attri
323323
if (value instanceof CustomObjectKeyReferenceImpl) {
324324
return Attribute.referenceBuilder().name(attribute.getName()).value(r -> r.keyValueDocumentBuilder().key (((CustomObjectKeyReferenceImpl) value).getKey())).build();
325325
}
326-
/*if (value instanceof AttributeSetType) {
327-
var elementType = ((AttributeSetType) value).getElementType();
328-
if (elementType instanceof BooleanAttribute) {
329-
return Attribute.booleanSetBuilder().name(attribute.getName()).value((List<Boolean>) value).build();
330-
}
331-
if (elementType instanceof NumberAttribute) {
332-
return Attribute.numberSetBuilder().name(attribute.getName()).value((List<Double>) value).build();
333-
}
334-
}*/
326+
/* TODO: AttributeNestedType */
335327
throw new IllegalArgumentException("Unsupported type: " + value.getClass());
336328
}
337329
}

0 commit comments

Comments
 (0)