diff --git a/spi/src/main/java/com/microsoft/dagx/spi/types/domain/transfer/TransferType.java b/spi/src/main/java/com/microsoft/dagx/spi/types/domain/transfer/TransferType.java index 2dde757b..a52fdd78 100644 --- a/spi/src/main/java/com/microsoft/dagx/spi/types/domain/transfer/TransferType.java +++ b/spi/src/main/java/com/microsoft/dagx/spi/types/domain/transfer/TransferType.java @@ -14,7 +14,8 @@ @JsonDeserialize(builder = TransferType.Builder.class) public class TransferType { - private String contentType; + private static final String DEFAULT_CONTENT_TYPE = "application/octet-stream"; + private String contentType = DEFAULT_CONTENT_TYPE; private boolean isFinite = true; public String getContentType() { @@ -27,7 +28,7 @@ public boolean isFinite() { @JsonPOJOBuilder(withPrefix = "") public static final class Builder { - private String contentType = "application/octet-stream"; + private String contentType = DEFAULT_CONTENT_TYPE; private boolean isFinite = true; private Builder() {