• 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

0.0
/src/main/java/com/box/sdkgen/managers/files/UpdateFileByIdRequestBodyParentField.java
1
package com.box.sdkgen.managers.files;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.fasterxml.jackson.annotation.JsonProperty;
5
import java.util.Objects;
6

7
public class UpdateFileByIdRequestBodyParentField extends SerializableObject {
8

9
  protected String id;
10

11
  @JsonProperty("user_id")
12
  protected String userId;
13

14
  public UpdateFileByIdRequestBodyParentField() {
15
    super();
×
16
  }
×
17

18
  protected UpdateFileByIdRequestBodyParentField(Builder builder) {
UNCOV
19
    super();
×
20
    this.id = builder.id;
×
21
    this.userId = builder.userId;
×
22
  }
×
23

24
  public String getId() {
25
    return id;
×
26
  }
27

28
  public String getUserId() {
29
    return userId;
×
30
  }
31

32
  @Override
33
  public boolean equals(Object o) {
34
    if (this == o) {
×
35
      return true;
×
36
    }
37
    if (o == null || getClass() != o.getClass()) {
×
38
      return false;
×
39
    }
40
    UpdateFileByIdRequestBodyParentField casted = (UpdateFileByIdRequestBodyParentField) o;
×
41
    return Objects.equals(id, casted.id) && Objects.equals(userId, casted.userId);
×
42
  }
43

44
  @Override
45
  public int hashCode() {
46
    return Objects.hash(id, userId);
×
47
  }
48

49
  @Override
50
  public String toString() {
51
    return "UpdateFileByIdRequestBodyParentField{"
×
52
        + "id='"
53
        + id
54
        + '\''
55
        + ", "
56
        + "userId='"
57
        + userId
58
        + '\''
59
        + "}";
60
  }
61

NEW
62
  public static class Builder {
×
63

64
    protected String id;
65

66
    protected String userId;
67

68
    public Builder id(String id) {
69
      this.id = id;
×
70
      return this;
×
71
    }
72

73
    public Builder userId(String userId) {
74
      this.userId = userId;
×
75
      return this;
×
76
    }
77

78
    public UpdateFileByIdRequestBodyParentField build() {
79
      return new UpdateFileByIdRequestBodyParentField(this);
×
80
    }
81
  }
82
}
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