• 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

4.55
/src/main/java/com/box/sdkgen/schemas/commentfull/CommentFull.java
1
package com.box.sdkgen.schemas.commentfull;
2

3
import com.box.sdkgen.schemas.comment.Comment;
4
import com.box.sdkgen.schemas.comment.CommentItemField;
5
import com.box.sdkgen.schemas.commentbase.CommentBaseTypeField;
6
import com.box.sdkgen.schemas.usermini.UserMini;
7
import com.box.sdkgen.serialization.json.EnumWrapper;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import java.util.Date;
10
import java.util.Objects;
11

12
public class CommentFull extends Comment {
13

14
  @JsonProperty("tagged_message")
15
  protected String taggedMessage;
16

17
  public CommentFull() {
18
    super();
1✔
19
  }
1✔
20

21
  protected CommentFull(Builder builder) {
22
    super(builder);
×
23
    this.taggedMessage = builder.taggedMessage;
×
24
  }
×
25

26
  public String getTaggedMessage() {
27
    return taggedMessage;
×
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
    CommentFull casted = (CommentFull) o;
×
39
    return Objects.equals(id, casted.id)
×
40
        && Objects.equals(type, casted.type)
×
41
        && Objects.equals(isReplyComment, casted.isReplyComment)
×
42
        && Objects.equals(message, casted.message)
×
43
        && Objects.equals(createdBy, casted.createdBy)
×
44
        && Objects.equals(createdAt, casted.createdAt)
×
45
        && Objects.equals(modifiedAt, casted.modifiedAt)
×
46
        && Objects.equals(item, casted.item)
×
47
        && Objects.equals(taggedMessage, casted.taggedMessage);
×
48
  }
49

50
  @Override
51
  public int hashCode() {
52
    return Objects.hash(
×
53
        id, type, isReplyComment, message, createdBy, createdAt, modifiedAt, item, taggedMessage);
54
  }
55

56
  @Override
57
  public String toString() {
58
    return "CommentFull{"
×
59
        + "id='"
60
        + id
61
        + '\''
62
        + ", "
63
        + "type='"
64
        + type
65
        + '\''
66
        + ", "
67
        + "isReplyComment='"
68
        + isReplyComment
69
        + '\''
70
        + ", "
71
        + "message='"
72
        + message
73
        + '\''
74
        + ", "
75
        + "createdBy='"
76
        + createdBy
77
        + '\''
78
        + ", "
79
        + "createdAt='"
80
        + createdAt
81
        + '\''
82
        + ", "
83
        + "modifiedAt='"
84
        + modifiedAt
85
        + '\''
86
        + ", "
87
        + "item='"
88
        + item
89
        + '\''
90
        + ", "
91
        + "taggedMessage='"
92
        + taggedMessage
93
        + '\''
94
        + "}";
95
  }
96

NEW
97
  public static class Builder extends Comment.Builder {
×
98

99
    protected String taggedMessage;
100

101
    public Builder taggedMessage(String taggedMessage) {
102
      this.taggedMessage = taggedMessage;
×
103
      return this;
×
104
    }
105

106
    @Override
107
    public Builder id(String id) {
108
      this.id = id;
×
109
      return this;
×
110
    }
111

112
    @Override
113
    public Builder type(CommentBaseTypeField type) {
114
      this.type = new EnumWrapper<CommentBaseTypeField>(type);
×
115
      return this;
×
116
    }
117

118
    @Override
119
    public Builder type(EnumWrapper<CommentBaseTypeField> type) {
120
      this.type = type;
×
121
      return this;
×
122
    }
123

124
    @Override
125
    public Builder isReplyComment(Boolean isReplyComment) {
126
      this.isReplyComment = isReplyComment;
×
127
      return this;
×
128
    }
129

130
    @Override
131
    public Builder message(String message) {
132
      this.message = message;
×
133
      return this;
×
134
    }
135

136
    @Override
137
    public Builder createdBy(UserMini createdBy) {
138
      this.createdBy = createdBy;
×
139
      return this;
×
140
    }
141

142
    @Override
143
    public Builder createdAt(Date createdAt) {
144
      this.createdAt = createdAt;
×
145
      return this;
×
146
    }
147

148
    @Override
149
    public Builder modifiedAt(Date modifiedAt) {
150
      this.modifiedAt = modifiedAt;
×
151
      return this;
×
152
    }
153

154
    @Override
155
    public Builder item(CommentItemField item) {
156
      this.item = item;
×
157
      return this;
×
158
    }
159

160
    public CommentFull build() {
161
      return new CommentFull(this);
×
162
    }
163
  }
164
}
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