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

box / box-java-sdk / #6860

29 Apr 2026 07:03PM UTC coverage: 34.624% (-0.4%) from 35.045%
#6860

push

github

web-flow
feat: Automate Public API (box/box-openapi#594) (#1820)

19 of 542 new or added lines in 19 files covered. (3.51%)

246 existing lines in 21 files now uncovered.

19116 of 55210 relevant lines covered (34.62%)

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/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 implements OneOfUnion {
11
  protected static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
×
12
  protected T0 value0;
13

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

18
  @Override
19
  public boolean hasAnyNonNullValue() {
UNCOV
20
    return value0 != null;
×
21
  }
22

23
  public static class OneOfOneSerializer extends JsonSerializer<OneOfOne<?>> {
24

25
    public OneOfOneSerializer() {
UNCOV
26
      super();
×
UNCOV
27
    }
×
28

29
    @Override
30
    public void serialize(
31
        OneOfOne<?> itemEntryField, JsonGenerator gen, SerializerProvider provider)
32
        throws IOException {
UNCOV
33
      if (itemEntryField.value0 != null) {
×
UNCOV
34
        JsonManager.WRITER.writeValue(gen, itemEntryField.value0);
×
UNCOV
35
        return;
×
36
      }
UNCOV
37
      gen.writeNull();
×
UNCOV
38
    }
×
39
  }
40
}
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