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

box / box-java-sdk / #6241

10 Feb 2026 05:27PM UTC coverage: 24.324% (+11.5%) from 12.84%
#6241

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%)

2130 existing lines in 537 files now uncovered.

7388 of 30373 relevant lines covered (24.32%)

0.28 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/weblinks/GetWebLinkByIdHeaders.java
1
package com.box.sdkgen.managers.folders;
2

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

5
import java.util.Map;
6

7
public class GetFolderItemsHeaders {
8

9
  /**
10
   * The URL, and optional password, for the shared link of this item.
11
   *
12
   * <p>This header can be used to access items that have not been explicitly shared with a user.
13
   *
14
   * <p>Use the format `shared_link=[link]` or if a password is required then use
15
   * `shared_link=[link]&amp;shared_link_password=[password]`.
16
   *
17
   * <p>This header can be used on the file or folder shared, as well as on any files or folders
18
   * nested within the item.
19
   */
20
  public String boxapi;
21

22
  /** Extra headers that will be included in the HTTP request. */
23
  public Map<String, String> extraHeaders;
24

25
  public GetFolderItemsHeaders() {
×
26
    this.extraHeaders = mapOf();
×
27
  }
×
28

29
  protected GetFolderItemsHeaders(Builder builder) {
×
30
    this.boxapi = builder.boxapi;
×
31
    this.extraHeaders = builder.extraHeaders;
×
32
  }
×
33

34
  public String getBoxapi() {
35
    return boxapi;
×
36
  }
37

38
  public Map<String, String> getExtraHeaders() {
39
    return extraHeaders;
×
40
  }
41

42
  public static class Builder {
43

44
    protected String boxapi;
45

46
    protected Map<String, String> extraHeaders;
47

NEW
48
    public Builder() {}
×
49

50
    public Builder boxapi(String boxapi) {
UNCOV
51
      this.boxapi = boxapi;
×
UNCOV
52
      return this;
×
53
    }
54

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

60
    public GetFolderItemsHeaders build() {
NEW
61
      if (this.extraHeaders == null) {
×
NEW
62
        this.extraHeaders = mapOf();
×
63
      }
64
      return new GetFolderItemsHeaders(this);
×
65
    }
66
  }
67
}
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