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

box / box-java-sdk-gen / #331

10 Jul 2025 05:13PM UTC coverage: 35.58%. First build
#331

Pull #359

github

web-flow
Merge e49be1aba into b7374ec91
Pull Request #359: chore: Update .codegen.json with commit hash of codegen and openapi spec

41 of 91 new or added lines in 11 files covered. (45.05%)

16957 of 47659 relevant lines covered (35.58%)

0.36 hits per line

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

37.5
/src/main/java/com/box/sdkgen/internal/OneOfSix.java
1
package com.box.sdkgen.internal;
2

3
import com.box.sdkgen.serialization.json.JsonManager;
4
import com.fasterxml.jackson.core.JsonGenerator;
5
import com.fasterxml.jackson.databind.JsonSerializer;
6
import com.fasterxml.jackson.databind.ObjectMapper;
7
import com.fasterxml.jackson.databind.SerializerProvider;
8
import java.io.IOException;
9

10
public class OneOfSix<T0, T1, T2, T3, T4, T5> extends SerializableObject {
11
  protected static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
1✔
12
  protected T0 value0;
13
  protected T1 value1;
14
  protected T2 value2;
15
  protected T3 value3;
16
  protected T4 value4;
17
  protected T5 value5;
18

19
  public OneOfSix(T0 value0, T1 value1, T2 value2, T3 value3, T4 value4, T5 value5) {
1✔
20
    this.value0 = value0;
1✔
21
    this.value1 = value1;
1✔
22
    this.value2 = value2;
1✔
23
    this.value3 = value3;
1✔
24
    this.value4 = value4;
1✔
25
    this.value5 = value5;
1✔
26
  }
1✔
27

28
  public static class OneOfSixSerializer extends JsonSerializer<OneOfSix<?, ?, ?, ?, ?, ?>> {
29

30
    public OneOfSixSerializer() {
31
      super();
×
32
    }
×
33

34
    @Override
35
    public void serialize(
36
        OneOfSix<?, ?, ?, ?, ?, ?> itemEntryField, JsonGenerator gen, SerializerProvider provider)
37
        throws IOException {
38
      if (itemEntryField.value0 != null) {
×
NEW
39
        JsonManager.WRITER.writeValue(gen, itemEntryField.value0);
×
40
      }
41
      if (itemEntryField.value1 != null) {
×
NEW
42
        JsonManager.WRITER.writeValue(gen, itemEntryField.value1);
×
43
      }
44
      if (itemEntryField.value2 != null) {
×
NEW
45
        JsonManager.WRITER.writeValue(gen, itemEntryField.value2);
×
46
      }
47
      if (itemEntryField.value3 != null) {
×
NEW
48
        JsonManager.WRITER.writeValue(gen, itemEntryField.value3);
×
49
      }
50
      if (itemEntryField.value4 != null) {
×
NEW
51
        JsonManager.WRITER.writeValue(gen, itemEntryField.value4);
×
52
      }
53
      if (itemEntryField.value5 != null) {
×
NEW
54
        JsonManager.WRITER.writeValue(gen, itemEntryField.value5);
×
55
      }
56
    }
×
57
  }
58
}
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