package com.alienvault.otx.model.pulse;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;

/*
 * © AlienVault Inc. 2017
 * All rights reserved
 * This code is protected by copyright and distributed under licenses
 * restricting its use, copying, distribution, and decompilation. It may
 * only be reproduced or used under license from AlienVault Inc. or its
 * authorised licensees.
 *
 * Created by crosa on 12/07/2017.
*/
public class OtxDateDeserializer extends JsonDeserializer<Date> {


    @Override
    public Date deserialize(JsonParser jsonparser,
                            DeserializationContext deserializationcontext) throws IOException, JsonProcessingException {

        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
        String date = jsonparser.getText();
        try {
            return format.parse(date);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }

    }


}

@@ -349,341 +349,8 @@
 e;%0A%0A
-/*%0A * %C2%A9 AlienVault Inc. 2017%0A * All rights reserved%0A * This code is protected by copyright and distributed under licenses%0A * restricting its use, copying, distribution, and decompilation. It may%0A * only be reproduced or used under license from AlienVault Inc. or its%0A * authorised licensees.%0A *%0A * Created by crosa on 12/07/2017.%0A*/%0A
 publ
@@ -412,17 +412,16 @@
 ate%3E %7B%0A%0A
-%0A
     @Ove

Remove header