• 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

28.57
/src/main/java/com/box/sdkgen/managers/uploads/UploadFileVersionHeaders.java
1
package com.box.sdkgen.managers.uploads;
2

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

5
import java.util.Map;
6

7
public class UploadFileVersionHeaders {
8

9
  public String ifMatch;
10

11
  public String contentMd5;
12

13
  public Map<String, String> extraHeaders;
14

15
  public UploadFileVersionHeaders() {
1✔
16
    this.extraHeaders = mapOf();
1✔
17
  }
1✔
18

NEW
19
  protected UploadFileVersionHeaders(Builder builder) {
×
20
    this.ifMatch = builder.ifMatch;
×
21
    this.contentMd5 = builder.contentMd5;
×
22
    this.extraHeaders = builder.extraHeaders;
×
23
  }
×
24

25
  public String getIfMatch() {
26
    return ifMatch;
1✔
27
  }
28

29
  public String getContentMd5() {
30
    return contentMd5;
1✔
31
  }
32

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

37
  public static class Builder {
38

39
    protected String ifMatch;
40

41
    protected String contentMd5;
42

43
    protected Map<String, String> extraHeaders;
44

NEW
45
    public Builder() {
×
46
      this.extraHeaders = mapOf();
×
47
    }
×
48

49
    public Builder ifMatch(String ifMatch) {
50
      this.ifMatch = ifMatch;
×
51
      return this;
×
52
    }
53

54
    public Builder contentMd5(String contentMd5) {
55
      this.contentMd5 = contentMd5;
×
56
      return this;
×
57
    }
58

59
    public Builder extraHeaders(Map<String, String> extraHeaders) {
60
      this.extraHeaders = extraHeaders;
×
61
      return this;
×
62
    }
63

64
    public UploadFileVersionHeaders build() {
65
      return new UploadFileVersionHeaders(this);
×
66
    }
67
  }
68
}
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