• 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

92.31
/src/main/java/com/box/sdkgen/managers/uploads/PreflightFileUploadCheckHeaders.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 PreflightFileUploadCheckHeaders {
8

9
  /** Extra headers that will be included in the HTTP request. */
10
  public Map<String, String> extraHeaders;
11

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

16
  protected PreflightFileUploadCheckHeaders(Builder builder) {
1✔
17
    this.extraHeaders = builder.extraHeaders;
1✔
18
  }
1✔
19

20
  public Map<String, String> getExtraHeaders() {
21
    return extraHeaders;
1✔
22
  }
23

24
  public static class Builder {
25

26
    protected Map<String, String> extraHeaders;
27

28
    public Builder() {}
1✔
29

30
    public Builder extraHeaders(Map<String, String> extraHeaders) {
31
      this.extraHeaders = extraHeaders;
1✔
32
      return this;
1✔
33
    }
34

35
    public PreflightFileUploadCheckHeaders build() {
36
      if (this.extraHeaders == null) {
1✔
37
        this.extraHeaders = mapOf();
×
38
      }
39
      return new PreflightFileUploadCheckHeaders(this);
1✔
40
    }
41
  }
42
}
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