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

box / box-java-sdk-gen / #332

10 Jul 2025 05:13PM UTC coverage: 35.644%. First build
#332

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

16986 of 47655 relevant lines covered (35.64%)

0.36 hits per line

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

44.44
/src/main/java/com/box/sdkgen/internal/OneOfOne.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 OneOfOne<T0> extends SerializableObject {
11
  protected static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
1✔
12
  protected T0 value0;
13

14
  public OneOfOne(T0 value0) {
1✔
15
    this.value0 = value0;
1✔
16
  }
1✔
17

18
  public static class OneOfOneSerializer extends JsonSerializer<OneOfOne<?>> {
19

20
    public OneOfOneSerializer() {
21
      super();
×
22
    }
×
23

24
    @Override
25
    public void serialize(
26
        OneOfOne<?> itemEntryField, JsonGenerator gen, SerializerProvider provider)
27
        throws IOException {
28
      if (itemEntryField.value0 != null) {
×
NEW
29
        JsonManager.WRITER.writeValue(gen, itemEntryField.value0);
×
30
      }
31
    }
×
32
  }
33
}
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