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

box / box-java-sdk / #6243

10 Feb 2026 05:27PM UTC coverage: 18.192% (-17.5%) from 35.714%
#6243

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

2147 existing lines in 545 files now uncovered.

7388 of 40611 relevant lines covered (18.19%)

0.21 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/keywordskillcard/KeywordSkillCardInvocationField.java
1
package com.box.sdkgen.schemas.keywordskillcard;
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
@JsonFilter("nullablePropertyFilter")
13
public class KeywordSkillCardInvocationField extends SerializableObject {
14

15
  /** The value will always be `skill_invocation`. */
16
  @JsonDeserialize(
17
      using =
18
          KeywordSkillCardInvocationTypeField.KeywordSkillCardInvocationTypeFieldDeserializer.class)
19
  @JsonSerialize(
20
      using =
21
          KeywordSkillCardInvocationTypeField.KeywordSkillCardInvocationTypeFieldSerializer.class)
22
  protected EnumWrapper<KeywordSkillCardInvocationTypeField> type;
23

24
  /**
25
   * A custom identifier that represent the instance of the service that applied this metadata. For
26
   * example, if your `image-recognition-service` runs on multiple nodes, this field can be used to
27
   * identify the ID of the node that was used to apply the metadata.
28
   */
29
  protected final String id;
30

31
  public KeywordSkillCardInvocationField(@JsonProperty("id") String id) {
32
    super();
×
33
    this.id = id;
×
34
    this.type =
×
35
        new EnumWrapper<KeywordSkillCardInvocationTypeField>(
36
            KeywordSkillCardInvocationTypeField.SKILL_INVOCATION);
37
  }
×
38

39
  protected KeywordSkillCardInvocationField(Builder builder) {
40
    super();
×
41
    this.type = builder.type;
×
42
    this.id = builder.id;
×
43
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
44
  }
×
45

46
  public EnumWrapper<KeywordSkillCardInvocationTypeField> getType() {
47
    return type;
×
48
  }
49

50
  public String getId() {
51
    return id;
×
52
  }
53

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

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

71
  @Override
72
  public String toString() {
73
    return "KeywordSkillCardInvocationField{"
×
74
        + "type='"
75
        + type
76
        + '\''
77
        + ", "
78
        + "id='"
79
        + id
80
        + '\''
81
        + "}";
82
  }
83

84
  public static class Builder extends NullableFieldTracker {
85

86
    protected EnumWrapper<KeywordSkillCardInvocationTypeField> type;
87

88
    protected final String id;
89

90
    public Builder(String id) {
91
      super();
×
92
      this.id = id;
×
93
    }
×
94

95
    public Builder type(KeywordSkillCardInvocationTypeField type) {
UNCOV
96
      this.type = new EnumWrapper<KeywordSkillCardInvocationTypeField>(type);
×
UNCOV
97
      return this;
×
98
    }
99

100
    public Builder type(EnumWrapper<KeywordSkillCardInvocationTypeField> type) {
UNCOV
101
      this.type = type;
×
UNCOV
102
      return this;
×
103
    }
104

105
    public KeywordSkillCardInvocationField build() {
NEW
106
      if (this.type == null) {
×
NEW
107
        this.type =
×
108
            new EnumWrapper<KeywordSkillCardInvocationTypeField>(
109
                KeywordSkillCardInvocationTypeField.SKILL_INVOCATION);
110
      }
UNCOV
111
      return new KeywordSkillCardInvocationField(this);
×
112
    }
113
  }
114
}
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