• 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

20.83
/src/main/java/com/box/sdkgen/managers/uploads/UploadFileVersionRequestBodyAttributesField.java
1
package com.box.sdkgen.managers.uploads;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.internal.utils.DateTimeUtils;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
7
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
8
import java.util.Date;
9
import java.util.Objects;
10

11
public class UploadFileVersionRequestBodyAttributesField extends SerializableObject {
12

13
  protected final String name;
14

15
  @JsonProperty("content_modified_at")
16
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
17
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
18
  protected Date contentModifiedAt;
19

20
  public UploadFileVersionRequestBodyAttributesField(@JsonProperty("name") String name) {
21
    super();
1✔
22
    this.name = name;
1✔
23
  }
1✔
24

25
  protected UploadFileVersionRequestBodyAttributesField(Builder builder) {
UNCOV
26
    super();
×
27
    this.name = builder.name;
×
28
    this.contentModifiedAt = builder.contentModifiedAt;
×
29
  }
×
30

31
  public String getName() {
32
    return name;
1✔
33
  }
34

35
  public Date getContentModifiedAt() {
36
    return contentModifiedAt;
1✔
37
  }
38

39
  @Override
40
  public boolean equals(Object o) {
41
    if (this == o) {
×
42
      return true;
×
43
    }
44
    if (o == null || getClass() != o.getClass()) {
×
45
      return false;
×
46
    }
47
    UploadFileVersionRequestBodyAttributesField casted =
×
48
        (UploadFileVersionRequestBodyAttributesField) o;
49
    return Objects.equals(name, casted.name)
×
50
        && Objects.equals(contentModifiedAt, casted.contentModifiedAt);
×
51
  }
52

53
  @Override
54
  public int hashCode() {
55
    return Objects.hash(name, contentModifiedAt);
×
56
  }
57

58
  @Override
59
  public String toString() {
60
    return "UploadFileVersionRequestBodyAttributesField{"
×
61
        + "name='"
62
        + name
63
        + '\''
64
        + ", "
65
        + "contentModifiedAt='"
66
        + contentModifiedAt
67
        + '\''
68
        + "}";
69
  }
70

71
  public static class Builder {
72

73
    protected final String name;
74

75
    protected Date contentModifiedAt;
76

NEW
77
    public Builder(String name) {
×
78
      this.name = name;
×
79
    }
×
80

81
    public Builder contentModifiedAt(Date contentModifiedAt) {
UNCOV
82
      this.contentModifiedAt = contentModifiedAt;
×
83
      return this;
×
84
    }
85

86
    public UploadFileVersionRequestBodyAttributesField build() {
87
      return new UploadFileVersionRequestBodyAttributesField(this);
×
88
    }
89
  }
90
}
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