From aadd45fe0807883ad5aadfc572023ec35f60887a Mon Sep 17 00:00:00 2001 From: Paul Latzelsperger Date: Wed, 14 Jul 2021 07:48:11 +0200 Subject: [PATCH] trasnfertype has default contenttype --- .../dagx/spi/types/domain/transfer/TransferType.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() {