• 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

38.1
/src/main/java/com/box/sdkgen/managers/chunkeduploads/UploadFilePartByUrlHeaders.java
1
package com.box.sdkgen.managers.chunkeduploads;
2

3
import static com.box.sdkgen.internal.utils.UtilsManager.mapOf;
4

5
import java.util.Map;
6

7
public class UploadFilePartByUrlHeaders {
8

9
  public final String digest;
10

11
  public final String contentRange;
12

13
  public Map<String, String> extraHeaders;
14

15
  public UploadFilePartByUrlHeaders(String digest, String contentRange) {
1✔
16
    this.digest = digest;
1✔
17
    this.contentRange = contentRange;
1✔
18
    this.extraHeaders = mapOf();
1✔
19
  }
1✔
20

NEW
21
  protected UploadFilePartByUrlHeaders(Builder builder) {
×
22
    this.digest = builder.digest;
×
23
    this.contentRange = builder.contentRange;
×
24
    this.extraHeaders = builder.extraHeaders;
×
25
  }
×
26

27
  public String getDigest() {
28
    return digest;
1✔
29
  }
30

31
  public String getContentRange() {
32
    return contentRange;
1✔
33
  }
34

35
  public Map<String, String> getExtraHeaders() {
36
    return extraHeaders;
1✔
37
  }
38

39
  public static class Builder {
40

41
    protected final String digest;
42

43
    protected final String contentRange;
44

45
    protected Map<String, String> extraHeaders;
46

NEW
47
    public Builder(String digest, String contentRange) {
×
48
      this.digest = digest;
×
49
      this.contentRange = contentRange;
×
50
      this.extraHeaders = mapOf();
×
51
    }
×
52

53
    public Builder extraHeaders(Map<String, String> extraHeaders) {
54
      this.extraHeaders = extraHeaders;
×
55
      return this;
×
56
    }
57

58
    public UploadFilePartByUrlHeaders build() {
59
      return new UploadFilePartByUrlHeaders(this);
×
60
    }
61
  }
62
}
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