package com.conveyal.taui.util;

import com.conveyal.geojson.GeoJsonModule;
import com.conveyal.r5.common.JsonUtilities;
import com.conveyal.r5.model.json_serialization.JavaLocalDateSerializer;
import com.conveyal.taui.models.JsonViews;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.mongojack.internal.MongoJackModule;

/**
 * Created by matthewc on 2/9/16.
 */
public class JsonUtil {
    public static ObjectMapper objectMapper = getObjectMapper(JsonViews.Api.class);

    public static ObjectMapper getObjectMapper (Class view) {
        return getObjectMapper(view, false);
    }

    public static ObjectMapper getObjectMapper(Class view, boolean configureMongoJack) {
        ObjectMapper objectMapper = new ObjectMapper();
        objectMapper.registerModule(new GeoJsonModule());
        objectMapper.registerModule(JavaLocalDateSerializer.makeModule());

        if (configureMongoJack) MongoJackModule.configure(objectMapper);

        objectMapper.setConfig(objectMapper.getSerializationConfig().withView(view));
        return objectMapper;
    }
}

@@ -334,56 +334,23 @@
 e;%0A%0A
-/**%0A * Created by matthewc on 2/9/16.%0A */%0Apublic
+public abstract
  cla
@@ -363,16 +363,18 @@
 nUtil %7B%0A
+%0A%0A
     publ
@@ -1038,10 +1038,11 @@
 ;%0A    %7D%0A
+%0A
 %7D%0A

Make library class abstract