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

3
import com.box.sdkgen.internal.SerializableObject;
4
import java.util.Objects;
5

6
public class RestoreFileFromTrashRequestBodyParentField extends SerializableObject {
7

8
  protected String id;
9

10
  public RestoreFileFromTrashRequestBodyParentField() {
11
    super();
×
12
  }
×
13

14
  protected RestoreFileFromTrashRequestBodyParentField(Builder builder) {
UNCOV
15
    super();
×
16
    this.id = builder.id;
×
17
  }
×
18

19
  public String getId() {
20
    return id;
×
21
  }
22

23
  @Override
24
  public boolean equals(Object o) {
25
    if (this == o) {
×
26
      return true;
×
27
    }
28
    if (o == null || getClass() != o.getClass()) {
×
29
      return false;
×
30
    }
31
    RestoreFileFromTrashRequestBodyParentField casted =
×
32
        (RestoreFileFromTrashRequestBodyParentField) o;
33
    return Objects.equals(id, casted.id);
×
34
  }
35

36
  @Override
37
  public int hashCode() {
38
    return Objects.hash(id);
×
39
  }
40

41
  @Override
42
  public String toString() {
43
    return "RestoreFileFromTrashRequestBodyParentField{" + "id='" + id + '\'' + "}";
×
44
  }
45

NEW
46
  public static class Builder {
×
47

48
    protected String id;
49

50
    public Builder id(String id) {
51
      this.id = id;
×
52
      return this;
×
53
    }
54

55
    public RestoreFileFromTrashRequestBodyParentField build() {
56
      return new RestoreFileFromTrashRequestBodyParentField(this);
×
57
    }
58
  }
59
}
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