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

box / box-java-sdk / #6244

10 Feb 2026 05:27PM UTC coverage: 40.749% (+22.6%) from 18.192%
#6244

push

github

web-flow
fix(boxsdkgen): Move assigning default values from builder constructor to `build()` method (box/box-codegen#922) (#1712)

0 of 1677 new or added lines in 569 files covered. (0.0%)

2146 existing lines in 544 files now uncovered.

7382 of 18116 relevant lines covered (40.75%)

0.46 hits per line

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

0.0
/src/main/java/com/box/sdkgen/managers/uploads/UploadFileHeaders.java
1
package com.box.sdkgen.managers.uploads;
2

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

5
import java.util.Map;
6

7
public class UploadFileHeaders {
8

9
  /**
10
   * An optional header containing the SHA1 hash of the file to ensure that the file was not
11
   * corrupted in transit.
12
   */
13
  public String contentMd5;
14

15
  /** Extra headers that will be included in the HTTP request. */
16
  public Map<String, String> extraHeaders;
17

18
  public UploadFileHeaders() {
×
19
    this.extraHeaders = mapOf();
×
20
  }
×
21

22
  protected UploadFileHeaders(Builder builder) {
×
23
    this.contentMd5 = builder.contentMd5;
×
24
    this.extraHeaders = builder.extraHeaders;
×
25
  }
×
26

27
  public String getContentMd5() {
28
    return contentMd5;
×
29
  }
30

31
  public Map<String, String> getExtraHeaders() {
32
    return extraHeaders;
×
33
  }
34

35
  public static class Builder {
36

37
    protected String contentMd5;
38

39
    protected Map<String, String> extraHeaders;
40

NEW
41
    public Builder() {}
×
42

43
    public Builder contentMd5(String contentMd5) {
UNCOV
44
      this.contentMd5 = contentMd5;
×
UNCOV
45
      return this;
×
46
    }
47

48
    public Builder extraHeaders(Map<String, String> extraHeaders) {
UNCOV
49
      this.extraHeaders = extraHeaders;
×
UNCOV
50
      return this;
×
51
    }
52

53
    public UploadFileHeaders build() {
NEW
54
      if (this.extraHeaders == null) {
×
NEW
55
        this.extraHeaders = mapOf();
×
56
      }
57
      return new UploadFileHeaders(this);
×
58
    }
59
  }
60
}
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