Skip to content
Permalink
Browse files

Moved ModelModule from container module to model module

  • Loading branch information...
richturner committed Apr 14, 2019
1 parent fa69bfc commit 6a8bafa956729b502e45af98431a58f50bb30f22
@@ -27,7 +27,7 @@
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import org.openremote.container.concurrent.ContainerThreads;
import org.openremote.container.json.ModelModule;
import org.openremote.model.ModelModule;
import org.openremote.container.util.LogUtil;

import java.util.*;
@@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.openremote.container.json;
package org.openremote.model;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
@@ -36,7 +36,7 @@

public class ModelModule extends SimpleModule {

private static class ValueJsonDeserializer<T extends Value> extends StdDeserializer<T> {
public static class ValueJsonDeserializer<T extends Value> extends StdDeserializer<T> {

public ValueJsonDeserializer() {
super(Value.class);
@@ -54,7 +54,7 @@ public T deserialize(JsonParser jsonParser, DeserializationContext context) thro
}
}

private static class ValueJsonSerializer extends JsonSerializer<Value> {
public static class ValueJsonSerializer extends JsonSerializer<Value> {
@Override
public void serialize(Value value, JsonGenerator gen, SerializerProvider serializers) throws IOException {
if (value != null) {

0 comments on commit 6a8bafa

Please sign in to comment.
You can’t perform that action at this time.