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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

33.33
/src/main/java/com/box/sdkgen/managers/sharedlinksweblinks/FindWebLinkForSharedLinkHeaders.java
1
package com.box.sdkgen.managers.sharedlinksfolders;
2

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

5
import java.util.Map;
6

7
public class FindFolderForSharedLinkHeaders {
8

9
  public String ifNoneMatch;
10

11
  public final String boxapi;
12

13
  public Map<String, String> extraHeaders;
14

15
  public FindFolderForSharedLinkHeaders(String boxapi) {
1✔
16
    this.boxapi = boxapi;
1✔
17
    this.extraHeaders = mapOf();
1✔
18
  }
1✔
19

NEW
20
  protected FindFolderForSharedLinkHeaders(Builder builder) {
×
21
    this.ifNoneMatch = builder.ifNoneMatch;
×
22
    this.boxapi = builder.boxapi;
×
23
    this.extraHeaders = builder.extraHeaders;
×
24
  }
×
25

26
  public String getIfNoneMatch() {
27
    return ifNoneMatch;
1✔
28
  }
29

30
  public String getBoxapi() {
31
    return boxapi;
1✔
32
  }
33

34
  public Map<String, String> getExtraHeaders() {
35
    return extraHeaders;
1✔
36
  }
37

38
  public static class Builder {
39

40
    protected String ifNoneMatch;
41

42
    protected final String boxapi;
43

44
    protected Map<String, String> extraHeaders;
45

NEW
46
    public Builder(String boxapi) {
×
47
      this.boxapi = boxapi;
×
48
      this.extraHeaders = mapOf();
×
49
    }
×
50

51
    public Builder ifNoneMatch(String ifNoneMatch) {
52
      this.ifNoneMatch = ifNoneMatch;
×
53
      return this;
×
54
    }
55

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

61
    public FindFolderForSharedLinkHeaders build() {
62
      return new FindFolderForSharedLinkHeaders(this);
×
63
    }
64
  }
65
}
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