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

box / box-java-sdk / #6242

10 Feb 2026 05:27PM UTC coverage: 35.714% (+11.4%) from 24.324%
#6242

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 20670 relevant lines covered (35.71%)

0.4 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/sharedlinksfiles/FindFileForSharedLinkHeaders.java
1
package com.box.sdkgen.managers.sharedlinksfiles;
2

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

5
import java.util.Map;
6

7
public class FindFileForSharedLinkHeaders {
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
   * A header containing the shared link and optional password for the shared link.
19
   *
20
   * <p>The format for this header is as follows:
21
   *
22
   * <p>`shared_link=[link]&amp;shared_link_password=[password]`.
23
   */
24
  public final String boxapi;
25

26
  /** Extra headers that will be included in the HTTP request. */
27
  public Map<String, String> extraHeaders;
28

29
  public FindFileForSharedLinkHeaders(String boxapi) {
×
30
    this.boxapi = boxapi;
×
31
    this.extraHeaders = mapOf();
×
32
  }
×
33

34
  protected FindFileForSharedLinkHeaders(Builder builder) {
×
35
    this.ifNoneMatch = builder.ifNoneMatch;
×
36
    this.boxapi = builder.boxapi;
×
37
    this.extraHeaders = builder.extraHeaders;
×
38
  }
×
39

40
  public String getIfNoneMatch() {
41
    return ifNoneMatch;
×
42
  }
43

44
  public String getBoxapi() {
45
    return boxapi;
×
46
  }
47

48
  public Map<String, String> getExtraHeaders() {
49
    return extraHeaders;
×
50
  }
51

52
  public static class Builder {
53

54
    protected String ifNoneMatch;
55

56
    protected final String boxapi;
57

58
    protected Map<String, String> extraHeaders;
59

60
    public Builder(String boxapi) {
×
61
      this.boxapi = boxapi;
×
62
    }
×
63

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

69
    public Builder extraHeaders(Map<String, String> extraHeaders) {
70
      this.extraHeaders = extraHeaders;
×
UNCOV
71
      return this;
×
72
    }
73

74
    public FindFileForSharedLinkHeaders build() {
NEW
75
      if (this.extraHeaders == null) {
×
NEW
76
        this.extraHeaders = mapOf();
×
77
      }
UNCOV
78
      return new FindFileForSharedLinkHeaders(this);
×
79
    }
80
  }
81
}
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