• 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

33.33
/src/main/java/com/box/sdkgen/managers/comments/CreateCommentRequestBodyItemField.java
1
package com.box.sdkgen.managers.comments;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.serialization.json.EnumWrapper;
5
import com.fasterxml.jackson.annotation.JsonFilter;
6
import com.fasterxml.jackson.annotation.JsonProperty;
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 CreateCommentRequestBodyItemField extends SerializableObject {
13

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

17
  /** The type of the item that this comment will be placed on. */
18
  @JsonDeserialize(
19
      using =
20
          CreateCommentRequestBodyItemTypeField.CreateCommentRequestBodyItemTypeFieldDeserializer
21
              .class)
22
  @JsonSerialize(
23
      using =
24
          CreateCommentRequestBodyItemTypeField.CreateCommentRequestBodyItemTypeFieldSerializer
25
              .class)
26
  protected final EnumWrapper<CreateCommentRequestBodyItemTypeField> type;
27

28
  public CreateCommentRequestBodyItemField(String id, CreateCommentRequestBodyItemTypeField type) {
29
    super();
1✔
30
    this.id = id;
1✔
31
    this.type = new EnumWrapper<CreateCommentRequestBodyItemTypeField>(type);
1✔
32
  }
1✔
33

34
  public CreateCommentRequestBodyItemField(
35
      @JsonProperty("id") String id,
36
      @JsonProperty("type") EnumWrapper<CreateCommentRequestBodyItemTypeField> type) {
37
    super();
×
38
    this.id = id;
×
39
    this.type = type;
×
40
  }
×
41

42
  public String getId() {
43
    return id;
1✔
44
  }
45

46
  public EnumWrapper<CreateCommentRequestBodyItemTypeField> getType() {
47
    return type;
1✔
48
  }
49

50
  @Override
51
  public boolean equals(Object o) {
52
    if (this == o) {
×
53
      return true;
×
54
    }
55
    if (o == null || getClass() != o.getClass()) {
×
56
      return false;
×
57
    }
58
    CreateCommentRequestBodyItemField casted = (CreateCommentRequestBodyItemField) o;
×
59
    return Objects.equals(id, casted.id) && Objects.equals(type, casted.type);
×
60
  }
61

62
  @Override
63
  public int hashCode() {
64
    return Objects.hash(id, type);
×
65
  }
66

67
  @Override
68
  public String toString() {
69
    return "CreateCommentRequestBodyItemField{"
×
70
        + "id='"
71
        + id
72
        + '\''
73
        + ", "
74
        + "type='"
75
        + type
76
        + '\''
77
        + "}";
78
  }
79
}
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