• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk-gen / #290

24 Jun 2025 01:20PM UTC coverage: 35.757% (+0.1%) from 35.632%
#290

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11777 existing lines in 624 files now uncovered.

16984 of 47499 relevant lines covered (35.76%)

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/conflicterror/ConflictError.java
1
package com.box.sdkgen.schemas.conflicterror;
2

3
import com.box.sdkgen.schemas.clienterror.ClientError;
4
import com.box.sdkgen.schemas.clienterror.ClientErrorCodeField;
5
import com.box.sdkgen.schemas.clienterror.ClientErrorTypeField;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import java.util.Map;
9
import java.util.Objects;
10

11
@JsonFilter("nullablePropertyFilter")
12
public class ConflictError extends ClientError {
13

14
  public ConflictError() {
UNCOV
15
    super();
×
UNCOV
16
  }
×
17

18
  protected ConflictError(Builder builder) {
UNCOV
19
    super(builder);
×
UNCOV
20
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
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
    ConflictError casted = (ConflictError) o;
×
32
    return Objects.equals(type, casted.type)
×
33
        && Objects.equals(status, casted.status)
×
34
        && Objects.equals(code, casted.code)
×
35
        && Objects.equals(message, casted.message)
×
UNCOV
36
        && Objects.equals(contextInfo, casted.contextInfo)
×
UNCOV
37
        && Objects.equals(helpUrl, casted.helpUrl)
×
UNCOV
38
        && Objects.equals(requestId, casted.requestId);
×
39
  }
40

41
  @Override
42
  public int hashCode() {
UNCOV
43
    return Objects.hash(type, status, code, message, contextInfo, helpUrl, requestId);
×
44
  }
45

46
  @Override
47
  public String toString() {
UNCOV
48
    return "ConflictError{"
×
49
        + "type='"
50
        + type
51
        + '\''
52
        + ", "
53
        + "status='"
54
        + status
55
        + '\''
56
        + ", "
57
        + "code='"
58
        + code
59
        + '\''
60
        + ", "
61
        + "message='"
62
        + message
63
        + '\''
64
        + ", "
65
        + "contextInfo='"
66
        + contextInfo
67
        + '\''
68
        + ", "
69
        + "helpUrl='"
70
        + helpUrl
71
        + '\''
72
        + ", "
73
        + "requestId='"
74
        + requestId
75
        + '\''
76
        + "}";
77
  }
78

UNCOV
79
  public static class Builder extends ClientError.Builder {
×
80

81
    @Override
82
    public Builder type(ClientErrorTypeField type) {
UNCOV
83
      this.type = new EnumWrapper<ClientErrorTypeField>(type);
×
UNCOV
84
      return this;
×
85
    }
86

87
    @Override
88
    public Builder type(EnumWrapper<ClientErrorTypeField> type) {
UNCOV
89
      this.type = type;
×
UNCOV
90
      return this;
×
91
    }
92

93
    @Override
94
    public Builder status(Integer status) {
UNCOV
95
      this.status = status;
×
UNCOV
96
      return this;
×
97
    }
98

99
    @Override
100
    public Builder code(ClientErrorCodeField code) {
UNCOV
101
      this.code = new EnumWrapper<ClientErrorCodeField>(code);
×
UNCOV
102
      return this;
×
103
    }
104

105
    @Override
106
    public Builder code(EnumWrapper<ClientErrorCodeField> code) {
UNCOV
107
      this.code = code;
×
UNCOV
108
      return this;
×
109
    }
110

111
    @Override
112
    public Builder message(String message) {
UNCOV
113
      this.message = message;
×
UNCOV
114
      return this;
×
115
    }
116

117
    @Override
118
    public Builder contextInfo(Map<String, Object> contextInfo) {
UNCOV
119
      this.contextInfo = contextInfo;
×
UNCOV
120
      this.markNullableFieldAsSet("context_info");
×
UNCOV
121
      return this;
×
122
    }
123

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

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

136
    public ConflictError build() {
UNCOV
137
      return new ConflictError(this);
×
138
    }
139
  }
140
}
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