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

box / box-java-sdk-gen / #293

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

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

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 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
  protected String id;
12

13
  protected String type;
14

15
  public CommentItemField() {
16
    super();
1✔
17
  }
1✔
18

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

26
  public String getId() {
27
    return id;
1✔
28
  }
29

30
  public String getType() {
UNCOV
31
    return type;
×
32
  }
33

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

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

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

UNCOV
56
  public static class Builder extends NullableFieldTracker {
×
57

58
    protected String id;
59

60
    protected String type;
61

62
    public Builder id(String id) {
UNCOV
63
      this.id = id;
×
64
      return this;
×
65
    }
66

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

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