• 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/downloads/DownloadFileHeaders.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 GetFolderByIdHeaders {
8

9
  /**
10
   * Ensures an item is only returned if it has changed.
11
   *
12
   * <p>Pass in the item's last observed `etag` value into this header and the endpoint will fail
13
   * with a `304 Not Modified` if the item has not changed since.
14
   */
15
  public String ifNoneMatch;
16

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

30
  /** Extra headers that will be included in the HTTP request. */
31
  public Map<String, String> extraHeaders;
32

33
  public GetFolderByIdHeaders() {
×
34
    this.extraHeaders = mapOf();
×
35
  }
×
36

37
  protected GetFolderByIdHeaders(Builder builder) {
×
38
    this.ifNoneMatch = builder.ifNoneMatch;
×
39
    this.boxapi = builder.boxapi;
×
40
    this.extraHeaders = builder.extraHeaders;
×
41
  }
×
42

43
  public String getIfNoneMatch() {
44
    return ifNoneMatch;
×
45
  }
46

47
  public String getBoxapi() {
48
    return boxapi;
×
49
  }
50

51
  public Map<String, String> getExtraHeaders() {
52
    return extraHeaders;
×
53
  }
54

55
  public static class Builder {
56

57
    protected String ifNoneMatch;
58

59
    protected String boxapi;
60

61
    protected Map<String, String> extraHeaders;
62

NEW
63
    public Builder() {}
×
64

65
    public Builder ifNoneMatch(String ifNoneMatch) {
UNCOV
66
      this.ifNoneMatch = ifNoneMatch;
×
UNCOV
67
      return this;
×
68
    }
69

70
    public Builder boxapi(String boxapi) {
UNCOV
71
      this.boxapi = boxapi;
×
UNCOV
72
      return this;
×
73
    }
74

75
    public Builder extraHeaders(Map<String, String> extraHeaders) {
UNCOV
76
      this.extraHeaders = extraHeaders;
×
UNCOV
77
      return this;
×
78
    }
79

80
    public GetFolderByIdHeaders build() {
NEW
81
      if (this.extraHeaders == null) {
×
NEW
82
        this.extraHeaders = mapOf();
×
83
      }
84
      return new GetFolderByIdHeaders(this);
×
85
    }
86
  }
87
}
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