com.enofex.naikan.model.module.DevelopersDeserializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of naikan-model Show documentation
Show all versions of naikan-model Show documentation
The Naikan Model Module for Naikan the software inventory management tool for dev teams driven
by our CI/CD pipeline.
The newest version!
package com.enofex.naikan.model.module;
import com.enofex.naikan.model.Developer;
import com.enofex.naikan.model.Developers;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import java.io.IOException;
import java.io.Serial;
import java.util.List;
final class DevelopersDeserializer extends AbstractDeserializer {
@Serial
private static final long serialVersionUID = 1L;
static final DevelopersDeserializer INSTANCE = new DevelopersDeserializer();
DevelopersDeserializer() {
super(Developers.class, Developers.empty());
}
@Override
public Developers deserialize(JsonParser jsonParser, DeserializationContext ctx)
throws IOException {
Developer[] developers = jsonParser.readValueAs(Developer[].class);
return new Developers(List.of(developers));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy