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

box / box-java-sdk / #6244

10 Feb 2026 05:27PM UTC coverage: 40.749% (+22.6%) from 18.192%
#6244

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%)

2146 existing lines in 544 files now uncovered.

7382 of 18116 relevant lines covered (40.75%)

0.46 hits per line

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

0.0
/src/main/java/com/box/sdkgen/schemas/integrationmappingbase/IntegrationMappingBase.java
1
package com.box.sdkgen.schemas.integrationmappingbase;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.Objects;
11

12
/** A base representation of an integration mapping object. */
13
@JsonFilter("nullablePropertyFilter")
14
public class IntegrationMappingBase extends SerializableObject {
15

16
  /**
17
   * A unique identifier of a folder mapping (part of a composite key together with
18
   * `integration_type`).
19
   */
20
  protected final String id;
21

22
  /** Mapping type. */
23
  @JsonDeserialize(
24
      using = IntegrationMappingBaseTypeField.IntegrationMappingBaseTypeFieldDeserializer.class)
25
  @JsonSerialize(
26
      using = IntegrationMappingBaseTypeField.IntegrationMappingBaseTypeFieldSerializer.class)
27
  protected EnumWrapper<IntegrationMappingBaseTypeField> type;
28

29
  public IntegrationMappingBase(@JsonProperty("id") String id) {
30
    super();
×
31
    this.id = id;
×
32
    this.type =
×
33
        new EnumWrapper<IntegrationMappingBaseTypeField>(
34
            IntegrationMappingBaseTypeField.INTEGRATION_MAPPING);
35
  }
×
36

37
  protected IntegrationMappingBase(Builder builder) {
38
    super();
×
39
    this.id = builder.id;
×
40
    this.type = builder.type;
×
41
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
42
  }
×
43

44
  public String getId() {
45
    return id;
×
46
  }
47

48
  public EnumWrapper<IntegrationMappingBaseTypeField> getType() {
49
    return type;
×
50
  }
51

52
  @Override
53
  public boolean equals(Object o) {
54
    if (this == o) {
×
55
      return true;
×
56
    }
57
    if (o == null || getClass() != o.getClass()) {
×
58
      return false;
×
59
    }
60
    IntegrationMappingBase casted = (IntegrationMappingBase) o;
×
61
    return Objects.equals(id, casted.id) && Objects.equals(type, casted.type);
×
62
  }
63

64
  @Override
65
  public int hashCode() {
66
    return Objects.hash(id, type);
×
67
  }
68

69
  @Override
70
  public String toString() {
71
    return "IntegrationMappingBase{" + "id='" + id + '\'' + ", " + "type='" + type + '\'' + "}";
×
72
  }
73

74
  public static class Builder extends NullableFieldTracker {
75

76
    protected final String id;
77

78
    protected EnumWrapper<IntegrationMappingBaseTypeField> type;
79

80
    public Builder(String id) {
81
      super();
×
82
      this.id = id;
×
83
    }
×
84

85
    public Builder type(IntegrationMappingBaseTypeField type) {
UNCOV
86
      this.type = new EnumWrapper<IntegrationMappingBaseTypeField>(type);
×
UNCOV
87
      return this;
×
88
    }
89

90
    public Builder type(EnumWrapper<IntegrationMappingBaseTypeField> type) {
UNCOV
91
      this.type = type;
×
UNCOV
92
      return this;
×
93
    }
94

95
    public IntegrationMappingBase build() {
NEW
96
      if (this.type == null) {
×
NEW
97
        this.type =
×
98
            new EnumWrapper<IntegrationMappingBaseTypeField>(
99
                IntegrationMappingBaseTypeField.INTEGRATION_MAPPING);
100
      }
UNCOV
101
      return new IntegrationMappingBase(this);
×
102
    }
103
  }
104
}
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