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

box / box-java-sdk-gen / #185

04 Jun 2025 10:42AM UTC coverage: 34.848% (-0.8%) from 35.631%
#185

Pull #327

github

web-flow
Merge a4b5eccbc into 28f2ec7f8
Pull Request #327: chore: Update .codegen.json with commit hash of codegen and openapi spec

15810 of 45369 relevant lines covered (34.85%)

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
  public String contentMd5;
10

11
  public Map<String, String> extraHeaders;
12

13
  public UploadFileHeaders() {
1✔
14
    this.extraHeaders = mapOf();
1✔
15
  }
1✔
16

17
  protected UploadFileHeaders(UploadFileHeadersBuilder builder) {
×
18
    this.contentMd5 = builder.contentMd5;
×
19
    this.extraHeaders = builder.extraHeaders;
×
20
  }
×
21

22
  public String getContentMd5() {
23
    return contentMd5;
1✔
24
  }
25

26
  public Map<String, String> getExtraHeaders() {
27
    return extraHeaders;
1✔
28
  }
29

30
  public static class UploadFileHeadersBuilder {
31

32
    protected String contentMd5;
33

34
    protected Map<String, String> extraHeaders;
35

36
    public UploadFileHeadersBuilder() {
×
37
      this.extraHeaders = mapOf();
×
38
    }
×
39

40
    public UploadFileHeadersBuilder contentMd5(String contentMd5) {
41
      this.contentMd5 = contentMd5;
×
42
      return this;
×
43
    }
44

45
    public UploadFileHeadersBuilder extraHeaders(Map<String, String> extraHeaders) {
46
      this.extraHeaders = extraHeaders;
×
47
      return this;
×
48
    }
49

50
    public UploadFileHeaders build() {
51
      return new UploadFileHeaders(this);
×
52
    }
53
  }
54
}
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