class CweDeserializer extends JsonDeserializer<List<Integer>> {

    @Override
    public List<Integer> deserialize(JsonParser jsonParser, DeserializationContext ctx) throws IOException {<FILL_FUNCTION_BODY>}
}

        if (jsonParser.getCurrentToken() == JsonToken.START_ARRAY) {
            final List<Integer> cweIds = new ArrayList<>();
            while(jsonParser.nextToken() != JsonToken.END_ARRAY) {
                if (jsonParser.getCurrentToken() == JsonToken.START_OBJECT) {
                    final Cwe cwe = jsonParser.readValueAs(Cwe.class);
                    if (cwe.getCweId() > 0) {
                        cweIds.add(cwe.getCweId());
                    }
                }
            }
            return cweIds;
        }
        return null;
    
<no_super_class>