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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

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

12.0
/src/main/java/com/box/sdkgen/schemas/commentbase/CommentBase.java
1
package com.box.sdkgen.schemas.commentbase;
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
/** Base representation of a comment. */
12
@JsonFilter("nullablePropertyFilter")
13
public class CommentBase extends SerializableObject {
14

15
  /** The unique identifier for this comment. */
16
  protected String id;
17

18
  /** The value will always be `comment`. */
19
  @JsonDeserialize(using = CommentBaseTypeField.CommentBaseTypeFieldDeserializer.class)
20
  @JsonSerialize(using = CommentBaseTypeField.CommentBaseTypeFieldSerializer.class)
21
  protected EnumWrapper<CommentBaseTypeField> type;
22

23
  public CommentBase() {
24
    super();
1✔
25
  }
1✔
26

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

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

38
  public EnumWrapper<CommentBaseTypeField> getType() {
39
    return type;
×
40
  }
41

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

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

59
  @Override
60
  public String toString() {
61
    return "CommentBase{" + "id='" + id + '\'' + ", " + "type='" + type + '\'' + "}";
×
62
  }
63

64
  public static class Builder extends NullableFieldTracker {
×
65

66
    protected String id;
67

68
    protected EnumWrapper<CommentBaseTypeField> type;
69

70
    public Builder id(String id) {
71
      this.id = id;
×
72
      return this;
×
73
    }
74

75
    public Builder type(CommentBaseTypeField type) {
76
      this.type = new EnumWrapper<CommentBaseTypeField>(type);
×
77
      return this;
×
78
    }
79

80
    public Builder type(EnumWrapper<CommentBaseTypeField> type) {
81
      this.type = type;
×
82
      return this;
×
83
    }
84

85
    public CommentBase build() {
86
      return new CommentBase(this);
×
87
    }
88
  }
89
}
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