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

box / box-java-sdk-gen / #359

14 Jul 2025 11:20AM UTC coverage: 38.075% (+2.5%) from 35.58%
#359

push

github

web-flow
feat: Support common union fields and implicit union conversion (box/box-codegen#758) (#361)

288 of 1203 new or added lines in 106 files covered. (23.94%)

165 existing lines in 43 files now uncovered.

18537 of 48685 relevant lines covered (38.08%)

0.38 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
  protected final String id;
15

16
  @JsonDeserialize(
17
      using =
18
          CreateCommentRequestBodyItemTypeField.CreateCommentRequestBodyItemTypeFieldDeserializer
19
              .class)
20
  @JsonSerialize(
21
      using =
22
          CreateCommentRequestBodyItemTypeField.CreateCommentRequestBodyItemTypeFieldSerializer
23
              .class)
24
  protected final EnumWrapper<CreateCommentRequestBodyItemTypeField> type;
25

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

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

40
  public String getId() {
41
    return id;
1✔
42
  }
43

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

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

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

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