• 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

13.64
/src/main/java/com/box/sdkgen/schemas/comment/CommentItemField.java
1
package com.box.sdkgen.schemas.comment;
2

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

6
public class CommentItemField extends SerializableObject {
7

8
  protected String id;
9

10
  protected String type;
11

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

16
  protected CommentItemField(Builder builder) {
17
    super();
×
18
    this.id = builder.id;
×
19
    this.type = builder.type;
×
20
  }
×
21

22
  public String getId() {
23
    return id;
1✔
24
  }
25

26
  public String getType() {
27
    return type;
×
28
  }
29

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

42
  @Override
43
  public int hashCode() {
44
    return Objects.hash(id, type);
×
45
  }
46

47
  @Override
48
  public String toString() {
49
    return "CommentItemField{" + "id='" + id + '\'' + ", " + "type='" + type + '\'' + "}";
×
50
  }
51

NEW
52
  public static class Builder {
×
53

54
    protected String id;
55

56
    protected String type;
57

58
    public Builder id(String id) {
59
      this.id = id;
×
60
      return this;
×
61
    }
62

63
    public Builder type(String type) {
64
      this.type = type;
×
65
      return this;
×
66
    }
67

68
    public CommentItemField build() {
69
      return new CommentItemField(this);
×
70
    }
71
  }
72
}
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