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

box / box-java-sdk-gen / #541

05 Sep 2025 02:31PM UTC coverage: 7.451% (-29.2%) from 36.66%
#541

push

other

web-flow
chore: release version 0.8.1 (#437)

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

14652 existing lines in 1191 files now uncovered.

3737 of 50151 relevant lines covered (7.45%)

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

UNCOV
14
  public OneOfOne(T0 value0) {
×
UNCOV
15
    this.value0 = value0;
×
UNCOV
16
  }
×
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) {
×
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