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

box / box-java-sdk-gen / #294

24 Jun 2025 01:20PM UTC coverage: 35.662% (+0.03%) from 35.632%
#294

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%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

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/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
@JsonFilter("nullablePropertyFilter")
10
public class OAuth2Error extends SerializableObject {
11

12
  protected String error;
13

14
  @JsonProperty("error_description")
15
  protected String errorDescription;
16

17
  public OAuth2Error() {
UNCOV
18
    super();
×
19
  }
×
20

21
  protected OAuth2Error(Builder builder) {
22
    super();
×
UNCOV
23
    this.error = builder.error;
×
UNCOV
24
    this.errorDescription = builder.errorDescription;
×
25
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
26
  }
×
27

28
  public String getError() {
29
    return error;
×
30
  }
31

32
  public String getErrorDescription() {
UNCOV
33
    return errorDescription;
×
34
  }
35

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

49
  @Override
50
  public int hashCode() {
UNCOV
51
    return Objects.hash(error, errorDescription);
×
52
  }
53

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

UNCOV
67
  public static class Builder extends NullableFieldTracker {
×
68

69
    protected String error;
70

71
    protected String errorDescription;
72

73
    public Builder error(String error) {
UNCOV
74
      this.error = error;
×
75
      return this;
×
76
    }
77

78
    public Builder errorDescription(String errorDescription) {
UNCOV
79
      this.errorDescription = errorDescription;
×
80
      return this;
×
81
    }
82

83
    public OAuth2Error build() {
UNCOV
84
      return new OAuth2Error(this);
×
85
    }
86
  }
87
}
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