• 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/UploadFileRequestBody.java
1
package com.box.sdkgen.managers.uploads;
2

3
import java.io.InputStream;
4

5
public class UploadFileRequestBody {
6

7
  public final UploadFileRequestBodyAttributesField attributes;
8

9
  public final InputStream file;
10

11
  public String fileFileName;
12

13
  public String fileContentType;
14

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

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

27
  public UploadFileRequestBodyAttributesField getAttributes() {
28
    return attributes;
1✔
29
  }
30

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

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

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

43
  public static class Builder {
44

45
    protected final UploadFileRequestBodyAttributesField attributes;
46

47
    protected final InputStream file;
48

49
    protected String fileFileName;
50

51
    protected String fileContentType;
52

NEW
53
    public Builder(UploadFileRequestBodyAttributesField attributes, InputStream file) {
×
54
      this.attributes = attributes;
×
55
      this.file = file;
×
56
    }
×
57

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

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

68
    public UploadFileRequestBody build() {
69
      return new UploadFileRequestBody(this);
×
70
    }
71
  }
72
}
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