• 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

34.78
/src/main/java/com/box/sdkgen/managers/uploads/UploadWithPreflightCheckRequestBody.java
1
package com.box.sdkgen.managers.uploads;
2

3
import java.io.InputStream;
4

5
public class UploadWithPreflightCheckRequestBody {
6

7
  public final UploadWithPreflightCheckRequestBodyAttributesField attributes;
8

9
  public final InputStream file;
10

11
  public String fileFileName;
12

13
  public String fileContentType;
14

15
  public UploadWithPreflightCheckRequestBody(
16
      UploadWithPreflightCheckRequestBodyAttributesField attributes, InputStream file) {
1✔
17
    this.attributes = attributes;
1✔
18
    this.file = file;
1✔
19
  }
1✔
20

NEW
21
  protected UploadWithPreflightCheckRequestBody(Builder builder) {
×
22
    this.attributes = builder.attributes;
×
23
    this.file = builder.file;
×
24
    this.fileFileName = builder.fileFileName;
×
25
    this.fileContentType = builder.fileContentType;
×
26
  }
×
27

28
  public UploadWithPreflightCheckRequestBodyAttributesField getAttributes() {
29
    return attributes;
1✔
30
  }
31

32
  public InputStream getFile() {
33
    return file;
1✔
34
  }
35

36
  public String getFileFileName() {
37
    return fileFileName;
1✔
38
  }
39

40
  public String getFileContentType() {
41
    return fileContentType;
1✔
42
  }
43

44
  public static class Builder {
45

46
    protected final UploadWithPreflightCheckRequestBodyAttributesField attributes;
47

48
    protected final InputStream file;
49

50
    protected String fileFileName;
51

52
    protected String fileContentType;
53

54
    public Builder(
55
        UploadWithPreflightCheckRequestBodyAttributesField attributes, InputStream file) {
×
56
      this.attributes = attributes;
×
57
      this.file = file;
×
58
    }
×
59

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

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

70
    public UploadWithPreflightCheckRequestBody build() {
71
      return new UploadWithPreflightCheckRequestBody(this);
×
72
    }
73
  }
74
}
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