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

box / box-java-sdk-gen / #293

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#293

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

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

52.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.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.databind.annotation.JsonDeserialize;
8
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9
import java.util.Objects;
10

11
@JsonFilter("nullablePropertyFilter")
12
public class CreateTaskRequestBodyItemField extends SerializableObject {
13

14
  protected String id;
15

16
  @JsonDeserialize(
17
      using =
18
          CreateTaskRequestBodyItemTypeField.CreateTaskRequestBodyItemTypeFieldDeserializer.class)
19
  @JsonSerialize(
20
      using = CreateTaskRequestBodyItemTypeField.CreateTaskRequestBodyItemTypeFieldSerializer.class)
21
  protected EnumWrapper<CreateTaskRequestBodyItemTypeField> type;
22

23
  public CreateTaskRequestBodyItemField() {
UNCOV
24
    super();
×
UNCOV
25
  }
×
26

27
  protected CreateTaskRequestBodyItemField(Builder builder) {
28
    super();
1✔
29
    this.id = builder.id;
1✔
30
    this.type = builder.type;
1✔
31
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
32
  }
1✔
33

34
  public String getId() {
35
    return id;
1✔
36
  }
37

38
  public EnumWrapper<CreateTaskRequestBodyItemTypeField> getType() {
39
    return type;
1✔
40
  }
41

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

54
  @Override
55
  public int hashCode() {
UNCOV
56
    return Objects.hash(id, type);
×
57
  }
58

59
  @Override
60
  public String toString() {
UNCOV
61
    return "CreateTaskRequestBodyItemField{"
×
62
        + "id='"
63
        + id
64
        + '\''
65
        + ", "
66
        + "type='"
67
        + type
68
        + '\''
69
        + "}";
70
  }
71

72
  public static class Builder extends NullableFieldTracker {
1✔
73

74
    protected String id;
75

76
    protected EnumWrapper<CreateTaskRequestBodyItemTypeField> type;
77

78
    public Builder id(String id) {
79
      this.id = id;
1✔
80
      return this;
1✔
81
    }
82

83
    public Builder type(CreateTaskRequestBodyItemTypeField type) {
84
      this.type = new EnumWrapper<CreateTaskRequestBodyItemTypeField>(type);
1✔
85
      return this;
1✔
86
    }
87

88
    public Builder type(EnumWrapper<CreateTaskRequestBodyItemTypeField> type) {
UNCOV
89
      this.type = type;
×
UNCOV
90
      return this;
×
91
    }
92

93
    public CreateTaskRequestBodyItemField build() {
94
      return new CreateTaskRequestBodyItemField(this);
1✔
95
    }
96
  }
97
}
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