• 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

24.0
/src/main/java/com/box/sdkgen/box/oauth/GetAuthorizeUrlOptions.java
1
package com.box.sdkgen.box.oauth;
2

3
public class GetAuthorizeUrlOptions {
4

5
  public String clientId;
6

7
  public String redirectUri;
8

9
  public String responseType;
10

11
  public String state;
12

13
  public String scope;
14

15
  public GetAuthorizeUrlOptions() {}
1✔
16

NEW
17
  protected GetAuthorizeUrlOptions(Builder builder) {
×
18
    this.clientId = builder.clientId;
×
19
    this.redirectUri = builder.redirectUri;
×
20
    this.responseType = builder.responseType;
×
21
    this.state = builder.state;
×
22
    this.scope = builder.scope;
×
23
  }
×
24

25
  public String getClientId() {
26
    return clientId;
1✔
27
  }
28

29
  public String getRedirectUri() {
30
    return redirectUri;
1✔
31
  }
32

33
  public String getResponseType() {
34
    return responseType;
1✔
35
  }
36

37
  public String getState() {
38
    return state;
1✔
39
  }
40

41
  public String getScope() {
42
    return scope;
1✔
43
  }
44

NEW
45
  public static class Builder {
×
46

47
    protected String clientId;
48

49
    protected String redirectUri;
50

51
    protected String responseType;
52

53
    protected String state;
54

55
    protected String scope;
56

57
    public Builder clientId(String clientId) {
58
      this.clientId = clientId;
×
59
      return this;
×
60
    }
61

62
    public Builder redirectUri(String redirectUri) {
63
      this.redirectUri = redirectUri;
×
64
      return this;
×
65
    }
66

67
    public Builder responseType(String responseType) {
68
      this.responseType = responseType;
×
69
      return this;
×
70
    }
71

72
    public Builder state(String state) {
73
      this.state = state;
×
74
      return this;
×
75
    }
76

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

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