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

box / box-java-sdk / #5838

16 Dec 2025 01:57PM UTC coverage: 12.903% (-0.4%) from 13.282%
#5838

Pull #1633

github

web-flow
Merge 39eadee31 into af4861f83
Pull Request #1633: feat(boxsdkgen): Treat nullable fields as Optional (box/box-codegen#906)

0 of 1897 new or added lines in 73 files covered. (0.0%)

19 existing lines in 10 files now uncovered.

8374 of 64898 relevant lines covered (12.9%)

0.13 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/metadatataxonomies/AddMetadataTaxonomyLevelRequestBody.java
1
package com.box.sdkgen.managers.metadatataxonomies;
2

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

9
@JsonFilter("nullablePropertyFilter")
10
public class AddMetadataTaxonomyLevelRequestBody extends SerializableObject {
11

12
  /** The display name of the taxonomy level. */
13
  protected final String displayName;
14

15
  /** The description of the taxonomy level. */
16
  protected String description;
17

18
  public AddMetadataTaxonomyLevelRequestBody(@JsonProperty("displayName") String displayName) {
NEW
19
    super();
×
NEW
20
    this.displayName = displayName;
×
NEW
21
  }
×
22

23
  protected AddMetadataTaxonomyLevelRequestBody(Builder builder) {
NEW
24
    super();
×
NEW
25
    this.displayName = builder.displayName;
×
NEW
26
    this.description = builder.description;
×
NEW
27
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
NEW
28
  }
×
29

30
  public String getDisplayName() {
NEW
31
    return displayName;
×
32
  }
33

34
  public String getDescription() {
NEW
35
    return description;
×
36
  }
37

38
  @Override
39
  public boolean equals(Object o) {
NEW
40
    if (this == o) {
×
NEW
41
      return true;
×
42
    }
NEW
43
    if (o == null || getClass() != o.getClass()) {
×
NEW
44
      return false;
×
45
    }
NEW
46
    AddMetadataTaxonomyLevelRequestBody casted = (AddMetadataTaxonomyLevelRequestBody) o;
×
NEW
47
    return Objects.equals(displayName, casted.displayName)
×
NEW
48
        && Objects.equals(description, casted.description);
×
49
  }
50

51
  @Override
52
  public int hashCode() {
NEW
53
    return Objects.hash(displayName, description);
×
54
  }
55

56
  @Override
57
  public String toString() {
NEW
58
    return "AddMetadataTaxonomyLevelRequestBody{"
×
59
        + "displayName='"
60
        + displayName
61
        + '\''
62
        + ", "
63
        + "description='"
64
        + description
65
        + '\''
66
        + "}";
67
  }
68

69
  public static class Builder extends NullableFieldTracker {
70

71
    protected final String displayName;
72

73
    protected String description;
74

75
    public Builder(String displayName) {
NEW
76
      super();
×
NEW
77
      this.displayName = displayName;
×
NEW
78
    }
×
79

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

85
    public AddMetadataTaxonomyLevelRequestBody build() {
NEW
86
      return new AddMetadataTaxonomyLevelRequestBody(this);
×
87
    }
88
  }
89
}
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

© 2025 Coveralls, Inc