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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

8.0
/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 java.util.Objects;
5

6
public class Metadata extends MetadataBase {
7

8
  public Metadata() {
9
    super();
1✔
10
  }
1✔
11

12
  protected Metadata(Builder builder) {
13
    super(builder);
×
14
  }
×
15

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

31
  @Override
32
  public int hashCode() {
33
    return Objects.hash(parent, template, scope, version);
×
34
  }
35

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

NEW
57
  public static class Builder extends MetadataBase.Builder {
×
58

59
    @Override
60
    public Builder parent(String parent) {
61
      this.parent = parent;
×
62
      return this;
×
63
    }
64

65
    @Override
66
    public Builder template(String template) {
67
      this.template = template;
×
68
      return this;
×
69
    }
70

71
    @Override
72
    public Builder scope(String scope) {
73
      this.scope = scope;
×
74
      return this;
×
75
    }
76

77
    @Override
78
    public Builder version(Long version) {
79
      this.version = version;
×
80
      return this;
×
81
    }
82

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