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

devonfw / IDEasy / 21013659204

14 Jan 2026 11:29PM UTC coverage: 70.365% (+0.5%) from 69.904%
21013659204

Pull #1675

github

web-flow
Merge 7a3aa598b into fcadaae82
Pull Request #1675: #1298: support ide-extra-tools.json #1658: prevent Jackson reflection

4015 of 6292 branches covered (63.81%)

Branch coverage included in aggregate %.

10440 of 14251 relevant lines covered (73.26%)

3.17 hits per line

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

72.22
cli/src/main/java/com/devonfw/tools/ide/tool/custom/CustomToolJsonSerializer.java
1
package com.devonfw.tools.ide.tool.custom;
2

3
import java.io.IOException;
4

5
import com.devonfw.tools.ide.json.JsonObjectSerializer;
6
import com.fasterxml.jackson.core.JsonGenerator;
7
import com.fasterxml.jackson.databind.SerializerProvider;
8

9
/**
10
 * {@link JsonObjectSerializer} for {@link CustomTool}.
11
 */
12
public class CustomToolJsonSerializer extends JsonObjectSerializer<CustomTool> {
3✔
13

14
  @Override
15
  protected void serializeProperties(CustomTool customTool, JsonGenerator jgen, SerializerProvider serializerProvider) throws IOException {
16
    jgen.writeFieldName(CustomTool.PROPERTY_NAME);
3✔
17
    jgen.writeString(customTool.name());
4✔
18
    jgen.writeFieldName(CustomTool.PROPERTY_VERSION);
3✔
19
    jgen.writeString(customTool.version());
4✔
20
    jgen.writeFieldName(CustomTool.PROPERTY_OS_AGNOSTIC);
3✔
21
    jgen.writeBoolean(customTool.osAgnostic());
4✔
22
    jgen.writeFieldName(CustomTool.PROPERTY_ARCH_AGNOSTIC);
3✔
23
    jgen.writeBoolean(customTool.archAgnostic());
4✔
24
    String url = customTool.url();
3✔
25
    if ((url != null) && !url.isBlank()) {
2!
26
      jgen.writeFieldName(CustomTool.PROPERTY_URL);
×
27
      jgen.writeString(url);
×
28
    }
29
  }
1✔
30

31
}
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