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

box / box-java-sdk / #4746

19 Aug 2025 10:21AM UTC coverage: 38.831% (+0.7%) from 38.166%
#4746

push

github

web-flow
feat: Support external user deletion API

20 of 167 new or added lines in 8 files covered. (11.98%)

145 existing lines in 18 files now uncovered.

19109 of 49211 relevant lines covered (38.83%)

0.39 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

© 2025 Coveralls, Inc