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

3
import java.io.InputStream;
4

5
public class UploadFileVersionRequestBody {
6

7
  public final UploadFileVersionRequestBodyAttributesField attributes;
8

9
  public final InputStream file;
10

11
  public String fileFileName;
12

13
  public String fileContentType;
14

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

NEW
21
  protected UploadFileVersionRequestBody(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 UploadFileVersionRequestBodyAttributesField 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 UploadFileVersionRequestBodyAttributesField attributes;
47

48
    protected final InputStream file;
49

50
    protected String fileFileName;
51

52
    protected String fileContentType;
53

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

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

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

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