• 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/managers/authorization/AuthorizeUserQueryParams.java
1
package com.box.sdkgen.managers.authorization;
2

3
import com.box.sdkgen.serialization.json.EnumWrapper;
4

5
public class AuthorizeUserQueryParams {
6

7
  public final EnumWrapper<AuthorizeUserQueryParamsResponseTypeField> responseType;
8

9
  public final String clientId;
10

11
  public String redirectUri;
12

13
  public String state;
14

15
  public String scope;
16

17
  public AuthorizeUserQueryParams(
18
      EnumWrapper<AuthorizeUserQueryParamsResponseTypeField> responseType, String clientId) {
×
19
    this.responseType = responseType;
×
20
    this.clientId = clientId;
×
21
  }
×
22

23
  public AuthorizeUserQueryParams(
24
      AuthorizeUserQueryParamsResponseTypeField responseType, String clientId) {
×
25
    this.responseType = new EnumWrapper<AuthorizeUserQueryParamsResponseTypeField>(responseType);
×
26
    this.clientId = clientId;
×
27
  }
×
28

NEW
29
  protected AuthorizeUserQueryParams(Builder builder) {
×
30
    this.responseType = builder.responseType;
×
31
    this.clientId = builder.clientId;
×
32
    this.redirectUri = builder.redirectUri;
×
33
    this.state = builder.state;
×
34
    this.scope = builder.scope;
×
35
  }
×
36

37
  public EnumWrapper<AuthorizeUserQueryParamsResponseTypeField> getResponseType() {
38
    return responseType;
×
39
  }
40

41
  public String getClientId() {
42
    return clientId;
×
43
  }
44

45
  public String getRedirectUri() {
46
    return redirectUri;
×
47
  }
48

49
  public String getState() {
50
    return state;
×
51
  }
52

53
  public String getScope() {
54
    return scope;
×
55
  }
56

57
  public static class Builder {
58

59
    protected final EnumWrapper<AuthorizeUserQueryParamsResponseTypeField> responseType;
60

61
    protected final String clientId;
62

63
    protected String redirectUri;
64

65
    protected String state;
66

67
    protected String scope;
68

69
    public Builder(
70
        EnumWrapper<AuthorizeUserQueryParamsResponseTypeField> responseType, String clientId) {
×
71
      this.responseType = responseType;
×
72
      this.clientId = clientId;
×
73
    }
×
74

NEW
75
    public Builder(AuthorizeUserQueryParamsResponseTypeField responseType, String clientId) {
×
76
      this.responseType = new EnumWrapper<AuthorizeUserQueryParamsResponseTypeField>(responseType);
×
77
      this.clientId = clientId;
×
78
    }
×
79

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

85
    public Builder state(String state) {
86
      this.state = state;
×
87
      return this;
×
88
    }
89

90
    public Builder scope(String scope) {
91
      this.scope = scope;
×
92
      return this;
×
93
    }
94

95
    public AuthorizeUserQueryParams build() {
96
      return new AuthorizeUserQueryParams(this);
×
97
    }
98
  }
99
}
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