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

box / box-java-sdk / #6241

10 Feb 2026 05:27PM UTC coverage: 24.324% (+11.5%) from 12.84%
#6241

push

github

web-flow
fix(boxsdkgen): Move assigning default values from builder constructor to `build()` method (box/box-codegen#922) (#1712)

0 of 1677 new or added lines in 569 files covered. (0.0%)

2130 existing lines in 537 files now uncovered.

7388 of 30373 relevant lines covered (24.32%)

0.28 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/box/sdkgen/box/oauth/OAuthConfig.java
1
package com.box.sdkgen.box.oauth;
2

3
import com.box.sdkgen.box.tokenstorage.InMemoryTokenStorage;
4
import com.box.sdkgen.box.tokenstorage.TokenStorage;
5

6
public class OAuthConfig {
7

8
  public final String clientId;
9

10
  public final String clientSecret;
11

12
  public TokenStorage tokenStorage;
13

14
  public OAuthConfig(String clientId, String clientSecret) {
×
15
    this.clientId = clientId;
×
16
    this.clientSecret = clientSecret;
×
17
    this.tokenStorage = new InMemoryTokenStorage();
×
18
  }
×
19

20
  protected OAuthConfig(Builder builder) {
×
21
    this.clientId = builder.clientId;
×
22
    this.clientSecret = builder.clientSecret;
×
23
    this.tokenStorage = builder.tokenStorage;
×
24
  }
×
25

26
  public String getClientId() {
27
    return clientId;
×
28
  }
29

30
  public String getClientSecret() {
31
    return clientSecret;
×
32
  }
33

34
  public TokenStorage getTokenStorage() {
35
    return tokenStorage;
×
36
  }
37

38
  public static class Builder {
39

40
    protected final String clientId;
41

42
    protected final String clientSecret;
43

44
    protected TokenStorage tokenStorage;
45

46
    public Builder(String clientId, String clientSecret) {
×
47
      this.clientId = clientId;
×
48
      this.clientSecret = clientSecret;
×
49
    }
×
50

51
    public Builder tokenStorage(TokenStorage tokenStorage) {
52
      this.tokenStorage = tokenStorage;
×
UNCOV
53
      return this;
×
54
    }
55

56
    public OAuthConfig build() {
NEW
57
      if (this.tokenStorage == null) {
×
NEW
58
        this.tokenStorage = new InMemoryTokenStorage();
×
59
      }
UNCOV
60
      return new OAuthConfig(this);
×
61
    }
62
  }
63
}
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