• 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

35.29
/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
  public final String boxapi;
10

11
  public Map<String, String> extraHeaders;
12

13
  public FindAppItemForSharedLinkHeaders(String boxapi) {
1✔
14
    this.boxapi = boxapi;
1✔
15
    this.extraHeaders = mapOf();
1✔
16
  }
1✔
17

NEW
18
  protected FindAppItemForSharedLinkHeaders(Builder builder) {
×
19
    this.boxapi = builder.boxapi;
×
20
    this.extraHeaders = builder.extraHeaders;
×
21
  }
×
22

23
  public String getBoxapi() {
24
    return boxapi;
1✔
25
  }
26

27
  public Map<String, String> getExtraHeaders() {
28
    return extraHeaders;
1✔
29
  }
30

31
  public static class Builder {
32

33
    protected final String boxapi;
34

35
    protected Map<String, String> extraHeaders;
36

NEW
37
    public Builder(String boxapi) {
×
38
      this.boxapi = boxapi;
×
39
      this.extraHeaders = mapOf();
×
40
    }
×
41

42
    public Builder extraHeaders(Map<String, String> extraHeaders) {
43
      this.extraHeaders = extraHeaders;
×
44
      return this;
×
45
    }
46

47
    public FindAppItemForSharedLinkHeaders build() {
48
      return new FindAppItemForSharedLinkHeaders(this);
×
49
    }
50
  }
51
}
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