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

box / box-java-sdk / #6244

10 Feb 2026 05:27PM UTC coverage: 40.749% (+22.6%) from 18.192%
#6244

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

2146 existing lines in 544 files now uncovered.

7382 of 18116 relevant lines covered (40.75%)

0.46 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/sharedlinksappitems/FindAppItemForSharedLinkHeaders.java
1
package com.box.sdkgen.managers.sharedlinksappitems;
2

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

5
import java.util.Map;
6

7
public class FindAppItemForSharedLinkHeaders {
8

9
  /**
10
   * A header containing the shared link and optional password for the shared link.
11
   *
12
   * <p>The format for this header is `shared_link=[link]&amp;shared_link_password=[password]`.
13
   */
14
  public final String boxapi;
15

16
  /** Extra headers that will be included in the HTTP request. */
17
  public Map<String, String> extraHeaders;
18

19
  public FindAppItemForSharedLinkHeaders(String boxapi) {
×
20
    this.boxapi = boxapi;
×
21
    this.extraHeaders = mapOf();
×
22
  }
×
23

24
  protected FindAppItemForSharedLinkHeaders(Builder builder) {
×
25
    this.boxapi = builder.boxapi;
×
26
    this.extraHeaders = builder.extraHeaders;
×
27
  }
×
28

29
  public String getBoxapi() {
30
    return boxapi;
×
31
  }
32

33
  public Map<String, String> getExtraHeaders() {
34
    return extraHeaders;
×
35
  }
36

37
  public static class Builder {
38

39
    protected final String boxapi;
40

41
    protected Map<String, String> extraHeaders;
42

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

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

52
    public FindAppItemForSharedLinkHeaders build() {
NEW
53
      if (this.extraHeaders == null) {
×
NEW
54
        this.extraHeaders = mapOf();
×
55
      }
UNCOV
56
      return new FindAppItemForSharedLinkHeaders(this);
×
57
    }
58
  }
59
}
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