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

box / box-java-sdk-gen / #295

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

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

7.69
/src/main/java/com/box/sdkgen/schemas/metadata/Metadata.java
1
package com.box.sdkgen.schemas.metadata;
2

3
import com.box.sdkgen.schemas.metadatabase.MetadataBase;
4
import com.fasterxml.jackson.annotation.JsonFilter;
5
import java.util.Objects;
6

7
@JsonFilter("nullablePropertyFilter")
8
public class Metadata extends MetadataBase {
9

10
  public Metadata() {
11
    super();
1✔
12
  }
1✔
13

14
  protected Metadata(Builder builder) {
UNCOV
15
    super(builder);
×
UNCOV
16
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
17
  }
×
18

19
  @Override
20
  public boolean equals(Object o) {
21
    if (this == o) {
×
22
      return true;
×
23
    }
24
    if (o == null || getClass() != o.getClass()) {
×
25
      return false;
×
26
    }
27
    Metadata casted = (Metadata) o;
×
28
    return Objects.equals(parent, casted.parent)
×
UNCOV
29
        && Objects.equals(template, casted.template)
×
UNCOV
30
        && Objects.equals(scope, casted.scope)
×
UNCOV
31
        && Objects.equals(version, casted.version);
×
32
  }
33

34
  @Override
35
  public int hashCode() {
UNCOV
36
    return Objects.hash(parent, template, scope, version);
×
37
  }
38

39
  @Override
40
  public String toString() {
UNCOV
41
    return "Metadata{"
×
42
        + "parent='"
43
        + parent
44
        + '\''
45
        + ", "
46
        + "template='"
47
        + template
48
        + '\''
49
        + ", "
50
        + "scope='"
51
        + scope
52
        + '\''
53
        + ", "
54
        + "version='"
55
        + version
56
        + '\''
57
        + "}";
58
  }
59

UNCOV
60
  public static class Builder extends MetadataBase.Builder {
×
61

62
    @Override
63
    public Builder parent(String parent) {
UNCOV
64
      this.parent = parent;
×
UNCOV
65
      return this;
×
66
    }
67

68
    @Override
69
    public Builder template(String template) {
UNCOV
70
      this.template = template;
×
UNCOV
71
      return this;
×
72
    }
73

74
    @Override
75
    public Builder scope(String scope) {
UNCOV
76
      this.scope = scope;
×
UNCOV
77
      return this;
×
78
    }
79

80
    @Override
81
    public Builder version(Long version) {
UNCOV
82
      this.version = version;
×
UNCOV
83
      return this;
×
84
    }
85

86
    public Metadata build() {
UNCOV
87
      return new Metadata(this);
×
88
    }
89
  }
90
}
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