• 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

32.0
/src/main/java/com/box/sdkgen/managers/chunkeduploads/CreateFileUploadSessionCommitHeaders.java
1
package com.box.sdkgen.managers.chunkeduploads;
2

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

5
import java.util.Map;
6

7
public class CreateFileUploadSessionCommitHeaders {
8

9
  public final String digest;
10

11
  public String ifMatch;
12

13
  public String ifNoneMatch;
14

15
  public Map<String, String> extraHeaders;
16

17
  public CreateFileUploadSessionCommitHeaders(String digest) {
1✔
18
    this.digest = digest;
1✔
19
    this.extraHeaders = mapOf();
1✔
20
  }
1✔
21

NEW
22
  protected CreateFileUploadSessionCommitHeaders(Builder builder) {
×
23
    this.digest = builder.digest;
×
24
    this.ifMatch = builder.ifMatch;
×
25
    this.ifNoneMatch = builder.ifNoneMatch;
×
26
    this.extraHeaders = builder.extraHeaders;
×
27
  }
×
28

29
  public String getDigest() {
30
    return digest;
1✔
31
  }
32

33
  public String getIfMatch() {
34
    return ifMatch;
1✔
35
  }
36

37
  public String getIfNoneMatch() {
38
    return ifNoneMatch;
1✔
39
  }
40

41
  public Map<String, String> getExtraHeaders() {
42
    return extraHeaders;
1✔
43
  }
44

45
  public static class Builder {
46

47
    protected final String digest;
48

49
    protected String ifMatch;
50

51
    protected String ifNoneMatch;
52

53
    protected Map<String, String> extraHeaders;
54

NEW
55
    public Builder(String digest) {
×
56
      this.digest = digest;
×
57
      this.extraHeaders = mapOf();
×
58
    }
×
59

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

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

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

75
    public CreateFileUploadSessionCommitHeaders build() {
76
      return new CreateFileUploadSessionCommitHeaders(this);
×
77
    }
78
  }
79
}
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