• 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

20.69
/src/main/java/com/box/sdkgen/box/jwtauth/JwtConfigFile.java
1
package com.box.sdkgen.box.jwtauth;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.fasterxml.jackson.annotation.JsonProperty;
5
import java.util.Objects;
6

7
public class JwtConfigFile extends SerializableObject {
8

9
  @JsonProperty("enterpriseID")
10
  protected String enterpriseId;
11

12
  @JsonProperty("userID")
13
  protected String userId;
14

15
  protected final JwtConfigAppSettings boxAppSettings;
16

17
  public JwtConfigFile(@JsonProperty("boxAppSettings") JwtConfigAppSettings boxAppSettings) {
18
    super();
1✔
19
    this.boxAppSettings = boxAppSettings;
1✔
20
  }
1✔
21

22
  protected JwtConfigFile(Builder builder) {
23
    super();
×
24
    this.enterpriseId = builder.enterpriseId;
×
25
    this.userId = builder.userId;
×
26
    this.boxAppSettings = builder.boxAppSettings;
×
27
  }
×
28

29
  public String getEnterpriseId() {
30
    return enterpriseId;
1✔
31
  }
32

33
  public String getUserId() {
34
    return userId;
1✔
35
  }
36

37
  public JwtConfigAppSettings getBoxAppSettings() {
38
    return boxAppSettings;
1✔
39
  }
40

41
  @Override
42
  public boolean equals(Object o) {
43
    if (this == o) {
×
44
      return true;
×
45
    }
46
    if (o == null || getClass() != o.getClass()) {
×
47
      return false;
×
48
    }
49
    JwtConfigFile casted = (JwtConfigFile) o;
×
50
    return Objects.equals(enterpriseId, casted.enterpriseId)
×
51
        && Objects.equals(userId, casted.userId)
×
52
        && Objects.equals(boxAppSettings, casted.boxAppSettings);
×
53
  }
54

55
  @Override
56
  public int hashCode() {
57
    return Objects.hash(enterpriseId, userId, boxAppSettings);
×
58
  }
59

60
  @Override
61
  public String toString() {
62
    return "JwtConfigFile{"
×
63
        + "enterpriseId='"
64
        + enterpriseId
65
        + '\''
66
        + ", "
67
        + "userId='"
68
        + userId
69
        + '\''
70
        + ", "
71
        + "boxAppSettings='"
72
        + boxAppSettings
73
        + '\''
74
        + "}";
75
  }
76

77
  public static class Builder {
78

79
    protected String enterpriseId;
80

81
    protected String userId;
82

83
    protected final JwtConfigAppSettings boxAppSettings;
84

NEW
85
    public Builder(JwtConfigAppSettings boxAppSettings) {
×
86
      this.boxAppSettings = boxAppSettings;
×
87
    }
×
88

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

94
    public Builder userId(String userId) {
95
      this.userId = userId;
×
96
      return this;
×
97
    }
98

99
    public JwtConfigFile build() {
100
      return new JwtConfigFile(this);
×
101
    }
102
  }
103
}
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