From 9688a077297d1f52c6bc3cec504d0d5dcf61d800 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 7 May 2014 09:34:29 +0200 Subject: [PATCH] SONAR-5189 Remove Kryo --- pom.xml | 5 ----- sonar-batch/pom.xml | 4 ---- sonar-batch/src/main/java/org/sonar/batch/index/Caches.java | 5 ----- 3 files changed, 14 deletions(-) diff --git a/pom.xml b/pom.xml index c2208839170..b1053d36b2f 100644 --- a/pom.xml +++ b/pom.xml @@ -1105,11 +1105,6 @@ - - com.esotericsoftware.kryo - kryo - 2.23.0 - com.github.kevinsawicki http-request diff --git a/sonar-batch/pom.xml b/sonar-batch/pom.xml index dae636cb3e7..8e527478c01 100644 --- a/sonar-batch/pom.xml +++ b/sonar-batch/pom.xml @@ -24,10 +24,6 @@ com.akiban akiban-persistit - - com.esotericsoftware.kryo - kryo - org.codehaus.sonar sonar-core diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/Caches.java b/sonar-batch/src/main/java/org/sonar/batch/index/Caches.java index eeb4909f291..087b323fbd7 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/index/Caches.java +++ b/sonar-batch/src/main/java/org/sonar/batch/index/Caches.java @@ -19,7 +19,6 @@ */ package org.sonar.batch.index; -import com.esotericsoftware.kryo.Kryo; import com.google.common.base.Preconditions; import com.google.common.collect.Sets; import com.persistit.Exchange; @@ -29,7 +28,6 @@ import com.persistit.Volume; import com.persistit.exception.PersistitException; import com.persistit.logging.Slf4jAdapter; import org.apache.commons.io.FileUtils; -import org.objenesis.strategy.SerializingInstantiatorStrategy; import org.picocontainer.Startable; import org.slf4j.LoggerFactory; import org.sonar.api.BatchComponent; @@ -53,7 +51,6 @@ public class Caches implements BatchComponent, Startable { private Persistit persistit; private Volume volume; private final TempFolder tempFolder; - private Kryo kryo; public Caches(TempFolder tempFolder) { this.tempFolder = tempFolder; @@ -65,8 +62,6 @@ public class Caches implements BatchComponent, Startable { tempDir = tempFolder.newDir("caches"); persistit = new Persistit(); persistit.setPersistitLogger(new Slf4jAdapter(LoggerFactory.getLogger("PERSISTIT"))); - kryo = new Kryo(); - kryo.setInstantiatorStrategy(new SerializingInstantiatorStrategy()); Properties props = new Properties(); props.setProperty("datapath", tempDir.getAbsolutePath()); props.setProperty("logpath", "${datapath}/log"); -- 2.39.5