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

box / box-java-sdk / #6245

10 Feb 2026 06:10PM UTC coverage: 34.748% (-0.3%) from 35.043%
#6245

push

github

web-flow
chore: Update `.codegen.json` with commit hash of `codegen` and `openapi` spec [skip ci] (#1719)

18637 of 53635 relevant lines covered (34.75%)

0.35 hits per line

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

29.41
/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() {
1✔
19
    this.extraHeaders = mapOf();
1✔
20
  }
1✔
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;
1✔
29
  }
30

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

35
  public static class Builder {
36

37
    protected String contentMd5;
38

39
    protected Map<String, String> extraHeaders;
40

41
    public Builder() {}
×
42

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

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

53
    public UploadFileHeaders build() {
54
      if (this.extraHeaders == null) {
×
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