• 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.users;
2

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

6
public class UpdateUserByIdRequestBodyNotificationEmailField extends SerializableObject {
7

8
  protected String email;
9

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

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

19
  public String getEmail() {
20
    return email;
×
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
    UpdateUserByIdRequestBodyNotificationEmailField casted =
×
32
        (UpdateUserByIdRequestBodyNotificationEmailField) o;
33
    return Objects.equals(email, casted.email);
×
34
  }
35

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

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

NEW
46
  public static class Builder {
×
47

48
    protected String email;
49

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

55
    public UpdateUserByIdRequestBodyNotificationEmailField build() {
56
      return new UpdateUserByIdRequestBodyNotificationEmailField(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