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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 hits per line

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

50.0
/src/main/java/com/box/sdkgen/managers/tasks/CreateTaskRequestBodyItemField.java
1
package com.box.sdkgen.managers.tasks;
2

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

9
public class CreateTaskRequestBodyItemField extends SerializableObject {
10

11
  protected String id;
12

13
  @JsonDeserialize(
14
      using =
15
          CreateTaskRequestBodyItemTypeField.CreateTaskRequestBodyItemTypeFieldDeserializer.class)
16
  @JsonSerialize(
17
      using = CreateTaskRequestBodyItemTypeField.CreateTaskRequestBodyItemTypeFieldSerializer.class)
18
  protected EnumWrapper<CreateTaskRequestBodyItemTypeField> type;
19

20
  public CreateTaskRequestBodyItemField() {
21
    super();
×
22
  }
×
23

24
  protected CreateTaskRequestBodyItemField(Builder builder) {
25
    super();
1✔
26
    this.id = builder.id;
1✔
27
    this.type = builder.type;
1✔
28
  }
1✔
29

30
  public String getId() {
31
    return id;
1✔
32
  }
33

34
  public EnumWrapper<CreateTaskRequestBodyItemTypeField> getType() {
35
    return type;
1✔
36
  }
37

38
  @Override
39
  public boolean equals(Object o) {
40
    if (this == o) {
×
41
      return true;
×
42
    }
43
    if (o == null || getClass() != o.getClass()) {
×
44
      return false;
×
45
    }
46
    CreateTaskRequestBodyItemField casted = (CreateTaskRequestBodyItemField) o;
×
47
    return Objects.equals(id, casted.id) && Objects.equals(type, casted.type);
×
48
  }
49

50
  @Override
51
  public int hashCode() {
52
    return Objects.hash(id, type);
×
53
  }
54

55
  @Override
56
  public String toString() {
57
    return "CreateTaskRequestBodyItemField{"
×
58
        + "id='"
59
        + id
60
        + '\''
61
        + ", "
62
        + "type='"
63
        + type
64
        + '\''
65
        + "}";
66
  }
67

68
  public static class Builder {
1✔
69

70
    protected String id;
71

72
    protected EnumWrapper<CreateTaskRequestBodyItemTypeField> type;
73

74
    public Builder id(String id) {
75
      this.id = id;
1✔
76
      return this;
1✔
77
    }
78

79
    public Builder type(CreateTaskRequestBodyItemTypeField type) {
80
      this.type = new EnumWrapper<CreateTaskRequestBodyItemTypeField>(type);
1✔
81
      return this;
1✔
82
    }
83

84
    public Builder type(EnumWrapper<CreateTaskRequestBodyItemTypeField> type) {
UNCOV
85
      this.type = type;
×
86
      return this;
×
87
    }
88

89
    public CreateTaskRequestBodyItemField build() {
90
      return new CreateTaskRequestBodyItemField(this);
1✔
91
    }
92
  }
93
}
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