• 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

58.62
/src/main/java/com/box/sdkgen/schemas/postoauth2revoke/PostOAuth2Revoke.java
1
package com.box.sdkgen.schemas.postoauth2revoke;
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 PostOAuth2Revoke extends SerializableObject {
11

12
  @JsonProperty("client_id")
13
  protected String clientId;
14

15
  @JsonProperty("client_secret")
16
  protected String clientSecret;
17

18
  protected String token;
19

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

24
  protected PostOAuth2Revoke(Builder builder) {
25
    super();
1✔
26
    this.clientId = builder.clientId;
1✔
27
    this.clientSecret = builder.clientSecret;
1✔
28
    this.token = builder.token;
1✔
29
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
30
  }
1✔
31

32
  public String getClientId() {
33
    return clientId;
1✔
34
  }
35

36
  public String getClientSecret() {
37
    return clientSecret;
1✔
38
  }
39

40
  public String getToken() {
41
    return token;
1✔
42
  }
43

44
  @Override
45
  public boolean equals(Object o) {
46
    if (this == o) {
×
UNCOV
47
      return true;
×
48
    }
49
    if (o == null || getClass() != o.getClass()) {
×
50
      return false;
×
51
    }
UNCOV
52
    PostOAuth2Revoke casted = (PostOAuth2Revoke) o;
×
UNCOV
53
    return Objects.equals(clientId, casted.clientId)
×
UNCOV
54
        && Objects.equals(clientSecret, casted.clientSecret)
×
UNCOV
55
        && Objects.equals(token, casted.token);
×
56
  }
57

58
  @Override
59
  public int hashCode() {
UNCOV
60
    return Objects.hash(clientId, clientSecret, token);
×
61
  }
62

63
  @Override
64
  public String toString() {
UNCOV
65
    return "PostOAuth2Revoke{"
×
66
        + "clientId='"
67
        + clientId
68
        + '\''
69
        + ", "
70
        + "clientSecret='"
71
        + clientSecret
72
        + '\''
73
        + ", "
74
        + "token='"
75
        + token
76
        + '\''
77
        + "}";
78
  }
79

80
  public static class Builder extends NullableFieldTracker {
1✔
81

82
    protected String clientId;
83

84
    protected String clientSecret;
85

86
    protected String token;
87

88
    public Builder clientId(String clientId) {
89
      this.clientId = clientId;
1✔
90
      return this;
1✔
91
    }
92

93
    public Builder clientSecret(String clientSecret) {
94
      this.clientSecret = clientSecret;
1✔
95
      return this;
1✔
96
    }
97

98
    public Builder token(String token) {
99
      this.token = token;
1✔
100
      return this;
1✔
101
    }
102

103
    public PostOAuth2Revoke build() {
104
      return new PostOAuth2Revoke(this);
1✔
105
    }
106
  }
107
}
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