File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
commercetools/commercetools-importapi-utils/src/main/java/com/commercetools/sdk Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments