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

box / box-java-sdk-gen / #294

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

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%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

0.36 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
@JsonFilter("nullablePropertyFilter")
12
public class CommentBase extends SerializableObject {
13

14
  protected String id;
15

16
  @JsonDeserialize(using = CommentBaseTypeField.CommentBaseTypeFieldDeserializer.class)
17
  @JsonSerialize(using = CommentBaseTypeField.CommentBaseTypeFieldSerializer.class)
18
  protected EnumWrapper<CommentBaseTypeField> type;
19

20
  public CommentBase() {
21
    super();
1✔
22
  }
1✔
23

24
  protected CommentBase(Builder builder) {
25
    super();
×
UNCOV
26
    this.id = builder.id;
×
UNCOV
27
    this.type = builder.type;
×
UNCOV
28
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
29
  }
×
30

31
  public String getId() {
32
    return id;
1✔
33
  }
34

35
  public EnumWrapper<CommentBaseTypeField> getType() {
UNCOV
36
    return type;
×
37
  }
38

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

51
  @Override
52
  public int hashCode() {
UNCOV
53
    return Objects.hash(id, type);
×
54
  }
55

56
  @Override
57
  public String toString() {
UNCOV
58
    return "CommentBase{" + "id='" + id + '\'' + ", " + "type='" + type + '\'' + "}";
×
59
  }
60

UNCOV
61
  public static class Builder extends NullableFieldTracker {
×
62

63
    protected String id;
64

65
    protected EnumWrapper<CommentBaseTypeField> type;
66

67
    public Builder id(String id) {
UNCOV
68
      this.id = id;
×
69
      return this;
×
70
    }
71

72
    public Builder type(CommentBaseTypeField type) {
UNCOV
73
      this.type = new EnumWrapper<CommentBaseTypeField>(type);
×
74
      return this;
×
75
    }
76

77
    public Builder type(EnumWrapper<CommentBaseTypeField> type) {
UNCOV
78
      this.type = type;
×
79
      return this;
×
80
    }
81

82
    public CommentBase build() {
UNCOV
83
      return new CommentBase(this);
×
84
    }
85
  }
86
}
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