• 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

13.04
/src/main/java/com/box/sdkgen/schemas/comment/CommentItemField.java
1
package com.box.sdkgen.schemas.comment;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.fasterxml.jackson.annotation.JsonFilter;
6
import java.util.Objects;
7

8
@JsonFilter("nullablePropertyFilter")
9
public class CommentItemField extends SerializableObject {
10

11
  /** The unique identifier for this object. */
12
  protected String id;
13

14
  /** The type for this object. */
15
  protected String type;
16

17
  public CommentItemField() {
18
    super();
1✔
19
  }
1✔
20

21
  protected CommentItemField(Builder builder) {
22
    super();
×
23
    this.id = builder.id;
×
24
    this.type = builder.type;
×
25
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
26
  }
×
27

28
  public String getId() {
29
    return id;
1✔
30
  }
31

32
  public String getType() {
33
    return type;
×
34
  }
35

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

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

53
  @Override
54
  public String toString() {
55
    return "CommentItemField{" + "id='" + id + '\'' + ", " + "type='" + type + '\'' + "}";
×
56
  }
57

58
  public static class Builder extends NullableFieldTracker {
×
59

60
    protected String id;
61

62
    protected String type;
63

64
    public Builder id(String id) {
65
      this.id = id;
×
66
      return this;
×
67
    }
68

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

74
    public CommentItemField build() {
75
      return new CommentItemField(this);
×
76
    }
77
  }
78
}
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