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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 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/oauth2error/OAuth2Error.java
1
package com.box.sdkgen.schemas.oauth2error;
2

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

9
/** An OAuth 2.0 error. */
10
@JsonFilter("nullablePropertyFilter")
11
public class OAuth2Error extends SerializableObject {
12

13
  /** The type of the error returned. */
14
  protected String error;
15

16
  /** The type of the error returned. */
17
  @JsonProperty("error_description")
18
  protected String errorDescription;
19

20
  public OAuth2Error() {
21
    super();
×
22
  }
×
23

24
  protected OAuth2Error(Builder builder) {
25
    super();
×
26
    this.error = builder.error;
×
27
    this.errorDescription = builder.errorDescription;
×
28
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
29
  }
×
30

31
  public String getError() {
32
    return error;
×
33
  }
34

35
  public String getErrorDescription() {
36
    return errorDescription;
×
37
  }
38

39
  @Override
40
  public boolean equals(Object o) {
41
    if (this == o) {
×
42
      return true;
×
43
    }
44
    if (o == null || getClass() != o.getClass()) {
×
45
      return false;
×
46
    }
47
    OAuth2Error casted = (OAuth2Error) o;
×
48
    return Objects.equals(error, casted.error)
×
49
        && Objects.equals(errorDescription, casted.errorDescription);
×
50
  }
51

52
  @Override
53
  public int hashCode() {
54
    return Objects.hash(error, errorDescription);
×
55
  }
56

57
  @Override
58
  public String toString() {
59
    return "OAuth2Error{"
×
60
        + "error='"
61
        + error
62
        + '\''
63
        + ", "
64
        + "errorDescription='"
65
        + errorDescription
66
        + '\''
67
        + "}";
68
  }
69

70
  public static class Builder extends NullableFieldTracker {
×
71

72
    protected String error;
73

74
    protected String errorDescription;
75

76
    public Builder error(String error) {
77
      this.error = error;
×
78
      return this;
×
79
    }
80

81
    public Builder errorDescription(String errorDescription) {
82
      this.errorDescription = errorDescription;
×
83
      return this;
×
84
    }
85

86
    public OAuth2Error build() {
87
      return new OAuth2Error(this);
×
88
    }
89
  }
90
}
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