• 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

16.67
/src/main/java/com/box/sdkgen/schemas/useravatar/UserAvatar.java
1
package com.box.sdkgen.schemas.useravatar;
2

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

7
public class UserAvatar extends SerializableObject {
8

9
  @JsonProperty("pic_urls")
10
  protected UserAvatarPicUrlsField picUrls;
11

12
  public UserAvatar() {
13
    super();
1✔
14
  }
1✔
15

16
  protected UserAvatar(Builder builder) {
17
    super();
×
18
    this.picUrls = builder.picUrls;
×
19
  }
×
20

21
  public UserAvatarPicUrlsField getPicUrls() {
22
    return picUrls;
1✔
23
  }
24

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

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

42
  @Override
43
  public String toString() {
44
    return "UserAvatar{" + "picUrls='" + picUrls + '\'' + "}";
×
45
  }
46

NEW
47
  public static class Builder {
×
48

49
    protected UserAvatarPicUrlsField picUrls;
50

51
    public Builder picUrls(UserAvatarPicUrlsField picUrls) {
52
      this.picUrls = picUrls;
×
53
      return this;
×
54
    }
55

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