• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk / #6242

10 Feb 2026 05:27PM UTC coverage: 35.714% (+11.4%) from 24.324%
#6242

push

github

web-flow
fix(boxsdkgen): Move assigning default values from builder constructor to `build()` method (box/box-codegen#922) (#1712)

0 of 1677 new or added lines in 569 files covered. (0.0%)

2146 existing lines in 544 files now uncovered.

7382 of 20670 relevant lines covered (35.71%)

0.4 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/box/sdkgen/managers/taskassignments/CreateTaskAssignmentRequestBodyTaskField.java
1
package com.box.sdkgen.managers.taskassignments;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class CreateTaskAssignmentRequestBodyTaskField extends SerializableObject {
14

15
  /** The ID of the task. */
16
  protected final String id;
17

18
  /** The type of the item to assign. */
19
  @JsonDeserialize(
20
      using =
21
          CreateTaskAssignmentRequestBodyTaskTypeField
22
              .CreateTaskAssignmentRequestBodyTaskTypeFieldDeserializer.class)
23
  @JsonSerialize(
24
      using =
25
          CreateTaskAssignmentRequestBodyTaskTypeField
26
              .CreateTaskAssignmentRequestBodyTaskTypeFieldSerializer.class)
27
  protected EnumWrapper<CreateTaskAssignmentRequestBodyTaskTypeField> type;
28

29
  public CreateTaskAssignmentRequestBodyTaskField(@JsonProperty("id") String id) {
30
    super();
×
31
    this.id = id;
×
32
    this.type =
×
33
        new EnumWrapper<CreateTaskAssignmentRequestBodyTaskTypeField>(
34
            CreateTaskAssignmentRequestBodyTaskTypeField.TASK);
35
  }
×
36

37
  protected CreateTaskAssignmentRequestBodyTaskField(Builder builder) {
38
    super();
×
39
    this.id = builder.id;
×
40
    this.type = builder.type;
×
41
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
42
  }
×
43

44
  public String getId() {
45
    return id;
×
46
  }
47

48
  public EnumWrapper<CreateTaskAssignmentRequestBodyTaskTypeField> getType() {
49
    return type;
×
50
  }
51

52
  @Override
53
  public boolean equals(Object o) {
54
    if (this == o) {
×
55
      return true;
×
56
    }
57
    if (o == null || getClass() != o.getClass()) {
×
58
      return false;
×
59
    }
60
    CreateTaskAssignmentRequestBodyTaskField casted = (CreateTaskAssignmentRequestBodyTaskField) o;
×
61
    return Objects.equals(id, casted.id) && Objects.equals(type, casted.type);
×
62
  }
63

64
  @Override
65
  public int hashCode() {
66
    return Objects.hash(id, type);
×
67
  }
68

69
  @Override
70
  public String toString() {
71
    return "CreateTaskAssignmentRequestBodyTaskField{"
×
72
        + "id='"
73
        + id
74
        + '\''
75
        + ", "
76
        + "type='"
77
        + type
78
        + '\''
79
        + "}";
80
  }
81

82
  public static class Builder extends NullableFieldTracker {
83

84
    protected final String id;
85

86
    protected EnumWrapper<CreateTaskAssignmentRequestBodyTaskTypeField> type;
87

88
    public Builder(String id) {
89
      super();
×
90
      this.id = id;
×
91
    }
×
92

93
    public Builder type(CreateTaskAssignmentRequestBodyTaskTypeField type) {
UNCOV
94
      this.type = new EnumWrapper<CreateTaskAssignmentRequestBodyTaskTypeField>(type);
×
UNCOV
95
      return this;
×
96
    }
97

98
    public Builder type(EnumWrapper<CreateTaskAssignmentRequestBodyTaskTypeField> type) {
UNCOV
99
      this.type = type;
×
UNCOV
100
      return this;
×
101
    }
102

103
    public CreateTaskAssignmentRequestBodyTaskField build() {
NEW
104
      if (this.type == null) {
×
NEW
105
        this.type =
×
106
            new EnumWrapper<CreateTaskAssignmentRequestBodyTaskTypeField>(
107
                CreateTaskAssignmentRequestBodyTaskTypeField.TASK);
108
      }
UNCOV
109
      return new CreateTaskAssignmentRequestBodyTaskField(this);
×
110
    }
111
  }
112
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc