• 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

16.67
/src/main/java/com/box/sdkgen/schemas/uploadedpart/UploadedPart.java
1
package com.box.sdkgen.schemas.uploadedpart;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.uploadpart.UploadPart;
5
import java.util.Objects;
6

7
public class UploadedPart extends SerializableObject {
8

9
  protected UploadPart part;
10

11
  public UploadedPart() {
12
    super();
1✔
13
  }
1✔
14

15
  protected UploadedPart(Builder builder) {
16
    super();
×
17
    this.part = builder.part;
×
18
  }
×
19

20
  public UploadPart getPart() {
21
    return part;
1✔
22
  }
23

24
  @Override
25
  public boolean equals(Object o) {
26
    if (this == o) {
×
27
      return true;
×
28
    }
29
    if (o == null || getClass() != o.getClass()) {
×
30
      return false;
×
31
    }
32
    UploadedPart casted = (UploadedPart) o;
×
33
    return Objects.equals(part, casted.part);
×
34
  }
35

36
  @Override
37
  public int hashCode() {
38
    return Objects.hash(part);
×
39
  }
40

41
  @Override
42
  public String toString() {
43
    return "UploadedPart{" + "part='" + part + '\'' + "}";
×
44
  }
45

NEW
46
  public static class Builder {
×
47

48
    protected UploadPart part;
49

50
    public Builder part(UploadPart part) {
51
      this.part = part;
×
52
      return this;
×
53
    }
54

55
    public UploadedPart build() {
56
      return new UploadedPart(this);
×
57
    }
58
  }
59
}
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