• 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/schemas/skillinvocation/SkillInvocationStatusField.java
1
package com.box.sdkgen.schemas.skillinvocation;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.serialization.json.EnumWrapper;
5
import com.fasterxml.jackson.annotation.JsonProperty;
6
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
7
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
8
import java.util.Objects;
9

10
public class SkillInvocationStatusField extends SerializableObject {
11

12
  @JsonDeserialize(
13
      using = SkillInvocationStatusStateField.SkillInvocationStatusStateFieldDeserializer.class)
14
  @JsonSerialize(
15
      using = SkillInvocationStatusStateField.SkillInvocationStatusStateFieldSerializer.class)
16
  protected EnumWrapper<SkillInvocationStatusStateField> state;
17

18
  protected String message;
19

20
  @JsonProperty("error_code")
21
  protected String errorCode;
22

23
  @JsonProperty("additional_info")
24
  protected String additionalInfo;
25

26
  public SkillInvocationStatusField() {
27
    super();
×
28
  }
×
29

30
  protected SkillInvocationStatusField(Builder builder) {
31
    super();
×
32
    this.state = builder.state;
×
33
    this.message = builder.message;
×
34
    this.errorCode = builder.errorCode;
×
35
    this.additionalInfo = builder.additionalInfo;
×
36
  }
×
37

38
  public EnumWrapper<SkillInvocationStatusStateField> getState() {
39
    return state;
×
40
  }
41

42
  public String getMessage() {
43
    return message;
×
44
  }
45

46
  public String getErrorCode() {
47
    return errorCode;
×
48
  }
49

50
  public String getAdditionalInfo() {
51
    return additionalInfo;
×
52
  }
53

54
  @Override
55
  public boolean equals(Object o) {
56
    if (this == o) {
×
57
      return true;
×
58
    }
59
    if (o == null || getClass() != o.getClass()) {
×
60
      return false;
×
61
    }
62
    SkillInvocationStatusField casted = (SkillInvocationStatusField) o;
×
63
    return Objects.equals(state, casted.state)
×
64
        && Objects.equals(message, casted.message)
×
65
        && Objects.equals(errorCode, casted.errorCode)
×
66
        && Objects.equals(additionalInfo, casted.additionalInfo);
×
67
  }
68

69
  @Override
70
  public int hashCode() {
71
    return Objects.hash(state, message, errorCode, additionalInfo);
×
72
  }
73

74
  @Override
75
  public String toString() {
76
    return "SkillInvocationStatusField{"
×
77
        + "state='"
78
        + state
79
        + '\''
80
        + ", "
81
        + "message='"
82
        + message
83
        + '\''
84
        + ", "
85
        + "errorCode='"
86
        + errorCode
87
        + '\''
88
        + ", "
89
        + "additionalInfo='"
90
        + additionalInfo
91
        + '\''
92
        + "}";
93
  }
94

NEW
95
  public static class Builder {
×
96

97
    protected EnumWrapper<SkillInvocationStatusStateField> state;
98

99
    protected String message;
100

101
    protected String errorCode;
102

103
    protected String additionalInfo;
104

105
    public Builder state(SkillInvocationStatusStateField state) {
106
      this.state = new EnumWrapper<SkillInvocationStatusStateField>(state);
×
107
      return this;
×
108
    }
109

110
    public Builder state(EnumWrapper<SkillInvocationStatusStateField> state) {
UNCOV
111
      this.state = state;
×
112
      return this;
×
113
    }
114

115
    public Builder message(String message) {
116
      this.message = message;
×
117
      return this;
×
118
    }
119

120
    public Builder errorCode(String errorCode) {
121
      this.errorCode = errorCode;
×
122
      return this;
×
123
    }
124

125
    public Builder additionalInfo(String additionalInfo) {
126
      this.additionalInfo = additionalInfo;
×
127
      return this;
×
128
    }
129

130
    public SkillInvocationStatusField build() {
131
      return new SkillInvocationStatusField(this);
×
132
    }
133
  }
134
}
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