Skip to content

Commit aadd45f

Browse files
trasnfertype has default contenttype
1 parent fcded65 commit aadd45f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spi/src/main/java/com/microsoft/dagx/spi/types/domain/transfer/TransferType.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
@JsonDeserialize(builder = TransferType.Builder.class)
1616
public class TransferType {
17-
private String contentType;
17+
private static final String DEFAULT_CONTENT_TYPE = "application/octet-stream";
18+
private String contentType = DEFAULT_CONTENT_TYPE;
1819
private boolean isFinite = true;
1920

2021
public String getContentType() {
@@ -27,7 +28,7 @@ public boolean isFinite() {
2728

2829
@JsonPOJOBuilder(withPrefix = "")
2930
public static final class Builder {
30-
private String contentType = "application/octet-stream";
31+
private String contentType = DEFAULT_CONTENT_TYPE;
3132
private boolean isFinite = true;
3233

3334
private Builder() {

0 commit comments

Comments
 (0)