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

box / box-java-sdk / #7654

15 Oct 2026 02:16PM UTC coverage: 35.096% (+0.03%) from 35.067%
#7654

push

github

web-flow
chore: release version 10.20.0

1 of 1 new or added line in 1 file covered. (100.0%)

198 existing lines in 19 files now uncovered.

19981 of 56932 relevant lines covered (35.1%)

0.35 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/clienterror/ClientErrorCodeField.java
1
package com.box.sdkgen.schemas.clienterror;
2

3
import com.box.sdkgen.serialization.json.EnumWrapper;
4
import com.box.sdkgen.serialization.json.Valuable;
5
import com.fasterxml.jackson.annotation.JsonValue;
6
import com.fasterxml.jackson.core.JsonGenerator;
7
import com.fasterxml.jackson.core.JsonParser;
8
import com.fasterxml.jackson.databind.DeserializationContext;
9
import com.fasterxml.jackson.databind.JsonDeserializer;
10
import com.fasterxml.jackson.databind.JsonSerializer;
11
import com.fasterxml.jackson.databind.SerializerProvider;
12
import java.io.IOException;
13
import java.util.Arrays;
14

15
public enum ClientErrorCodeField implements Valuable {
×
16
  CREATED("created"),
×
17
  ACCEPTED("accepted"),
×
18
  NO_CONTENT("no_content"),
×
19
  REDIRECT("redirect"),
×
20
  NOT_MODIFIED("not_modified"),
×
21
  BAD_REQUEST("bad_request"),
×
22
  UNAUTHORIZED("unauthorized"),
×
23
  FORBIDDEN("forbidden"),
×
24
  NOT_FOUND("not_found"),
×
25
  METHOD_NOT_ALLOWED("method_not_allowed"),
×
26
  CONFLICT("conflict"),
×
27
  PRECONDITION_FAILED("precondition_failed"),
×
28
  UNPROCESSABLE_ENTITY("unprocessable_entity"),
×
29
  TOO_MANY_REQUESTS("too_many_requests"),
×
30
  INTERNAL_SERVER_ERROR("internal_server_error"),
×
31
  UNAVAILABLE("unavailable"),
×
32
  ITEM_NAME_INVALID("item_name_invalid"),
×
UNCOV
33
  INSUFFICIENT_SCOPE("insufficient_scope");
×
34

35
  private final String value;
36

37
  ClientErrorCodeField(String value) {
×
38
    this.value = value;
×
UNCOV
39
  }
×
40

41
  @JsonValue
42
  public String getValue() {
UNCOV
43
    return value;
×
44
  }
45

46
  public static class ClientErrorCodeFieldDeserializer
47
      extends JsonDeserializer<EnumWrapper<ClientErrorCodeField>> {
48

49
    public ClientErrorCodeFieldDeserializer() {
50
      super();
×
UNCOV
51
    }
×
52

53
    @Override
54
    public EnumWrapper<ClientErrorCodeField> deserialize(JsonParser p, DeserializationContext ctxt)
55
        throws IOException {
56
      String value = p.getValueAsString();
×
57
      return Arrays.stream(ClientErrorCodeField.values())
×
58
          .filter((v) -> v.getValue().equalsIgnoreCase(value))
×
59
          .findFirst()
×
60
          .map(EnumWrapper::new)
×
UNCOV
61
          .orElse(new EnumWrapper<ClientErrorCodeField>(value));
×
62
    }
63
  }
64

65
  public static class ClientErrorCodeFieldSerializer
66
      extends JsonSerializer<EnumWrapper<ClientErrorCodeField>> {
67

68
    public ClientErrorCodeFieldSerializer() {
69
      super();
×
UNCOV
70
    }
×
71

72
    @Override
73
    public void serialize(
74
        EnumWrapper<ClientErrorCodeField> value, JsonGenerator gen, SerializerProvider serializers)
75
        throws IOException {
76
      gen.writeString(value.getStringValue());
×
UNCOV
77
    }
×
78
  }
79
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc