Skip to content

Commit

Permalink
fix: removed jsoncreator
Browse files Browse the repository at this point in the history
  • Loading branch information
eschrewe committed Dec 6, 2023
1 parent 0046fa1 commit 7b7b561
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,11 @@
*/
package org.eclipse.tractusx.puris.backend.stock.logic.dto.itemstocksamm;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonValue;

import java.util.Optional;

/**
* Generated class {@link ItemUnitEnumeration}.
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ItemUnitEnumeration {
UNIT_PIECE("unit:piece"),
UNIT_SET("unit:set"),
Expand Down Expand Up @@ -74,13 +69,6 @@ public enum ItemUnitEnumeration {
this.value = value;
}

@JsonCreator
static ItemUnitEnumeration enumDeserializationConstructor(String value) {
return Optional.of(ItemUnitEnumeration.valueOf(ItemUnitEnumeration.class, value)).orElseThrow(
() -> new IllegalArgumentException(
"Tried to parse value \"" + value + "\", but there is no enum field like that in ItemUnitEnumeration"));
}

@JsonValue
public String getValue() {
return value;
Expand Down

0 comments on commit 7b7b561

Please sign in to comment.