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

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

7
public class AddClassificationRequestBodyDataField extends SerializableObject {
8

9
  protected final String key;
10

11
  protected AddClassificationRequestBodyDataStaticConfigField staticConfig;
12

13
  public AddClassificationRequestBodyDataField(@JsonProperty("key") String key) {
14
    super();
×
15
    this.key = key;
×
16
  }
×
17

18
  protected AddClassificationRequestBodyDataField(Builder builder) {
UNCOV
19
    super();
×
20
    this.key = builder.key;
×
21
    this.staticConfig = builder.staticConfig;
×
22
  }
×
23

24
  public String getKey() {
25
    return key;
×
26
  }
27

28
  public AddClassificationRequestBodyDataStaticConfigField getStaticConfig() {
29
    return staticConfig;
×
30
  }
31

32
  @Override
33
  public boolean equals(Object o) {
34
    if (this == o) {
×
35
      return true;
×
36
    }
37
    if (o == null || getClass() != o.getClass()) {
×
38
      return false;
×
39
    }
40
    AddClassificationRequestBodyDataField casted = (AddClassificationRequestBodyDataField) o;
×
41
    return Objects.equals(key, casted.key) && Objects.equals(staticConfig, casted.staticConfig);
×
42
  }
43

44
  @Override
45
  public int hashCode() {
46
    return Objects.hash(key, staticConfig);
×
47
  }
48

49
  @Override
50
  public String toString() {
51
    return "AddClassificationRequestBodyDataField{"
×
52
        + "key='"
53
        + key
54
        + '\''
55
        + ", "
56
        + "staticConfig='"
57
        + staticConfig
58
        + '\''
59
        + "}";
60
  }
61

62
  public static class Builder {
63

64
    protected final String key;
65

66
    protected AddClassificationRequestBodyDataStaticConfigField staticConfig;
67

NEW
68
    public Builder(String key) {
×
69
      this.key = key;
×
70
    }
×
71

72
    public Builder staticConfig(AddClassificationRequestBodyDataStaticConfigField staticConfig) {
UNCOV
73
      this.staticConfig = staticConfig;
×
74
      return this;
×
75
    }
76

77
    public AddClassificationRequestBodyDataField build() {
78
      return new AddClassificationRequestBodyDataField(this);
×
79
    }
80
  }
81
}
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