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

box / box-java-sdk / #6241

10 Feb 2026 05:27PM UTC coverage: 24.324% (+11.5%) from 12.84%
#6241

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%)

2130 existing lines in 537 files now uncovered.

7388 of 30373 relevant lines covered (24.32%)

0.28 hits per line

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

0.0
/src/main/java/com/box/sdkgen/schemas/aitextgen/AiTextGenItemsField.java
1
package com.box.sdkgen.schemas.aitextgen;
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 AiTextGenItemsField extends SerializableObject {
14

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

18
  /** The type of the item. */
19
  @JsonDeserialize(using = AiTextGenItemsTypeField.AiTextGenItemsTypeFieldDeserializer.class)
20
  @JsonSerialize(using = AiTextGenItemsTypeField.AiTextGenItemsTypeFieldSerializer.class)
21
  protected EnumWrapper<AiTextGenItemsTypeField> type;
22

23
  /** The content to use as context for generating new text or editing existing text. */
24
  protected String content;
25

26
  public AiTextGenItemsField(@JsonProperty("id") String id) {
27
    super();
×
28
    this.id = id;
×
29
    this.type = new EnumWrapper<AiTextGenItemsTypeField>(AiTextGenItemsTypeField.FILE);
×
30
  }
×
31

32
  protected AiTextGenItemsField(Builder builder) {
33
    super();
×
34
    this.id = builder.id;
×
35
    this.type = builder.type;
×
36
    this.content = builder.content;
×
37
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
38
  }
×
39

40
  public String getId() {
41
    return id;
×
42
  }
43

44
  public EnumWrapper<AiTextGenItemsTypeField> getType() {
45
    return type;
×
46
  }
47

48
  public String getContent() {
49
    return content;
×
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
    AiTextGenItemsField casted = (AiTextGenItemsField) o;
×
61
    return Objects.equals(id, casted.id)
×
62
        && Objects.equals(type, casted.type)
×
63
        && Objects.equals(content, casted.content);
×
64
  }
65

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

71
  @Override
72
  public String toString() {
73
    return "AiTextGenItemsField{"
×
74
        + "id='"
75
        + id
76
        + '\''
77
        + ", "
78
        + "type='"
79
        + type
80
        + '\''
81
        + ", "
82
        + "content='"
83
        + content
84
        + '\''
85
        + "}";
86
  }
87

88
  public static class Builder extends NullableFieldTracker {
89

90
    protected final String id;
91

92
    protected EnumWrapper<AiTextGenItemsTypeField> type;
93

94
    protected String content;
95

96
    public Builder(String id) {
97
      super();
×
98
      this.id = id;
×
99
    }
×
100

101
    public Builder type(AiTextGenItemsTypeField type) {
102
      this.type = new EnumWrapper<AiTextGenItemsTypeField>(type);
×
UNCOV
103
      return this;
×
104
    }
105

106
    public Builder type(EnumWrapper<AiTextGenItemsTypeField> type) {
107
      this.type = type;
×
UNCOV
108
      return this;
×
109
    }
110

111
    public Builder content(String content) {
112
      this.content = content;
×
UNCOV
113
      return this;
×
114
    }
115

116
    public AiTextGenItemsField build() {
NEW
117
      if (this.type == null) {
×
NEW
118
        this.type = new EnumWrapper<AiTextGenItemsTypeField>(AiTextGenItemsTypeField.FILE);
×
119
      }
UNCOV
120
      return new AiTextGenItemsField(this);
×
121
    }
122
  }
123
}
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