</exclusion>
</exclusions>
</dependency>
- <dependency>
- <groupId>com.esotericsoftware.kryo</groupId>
- <artifactId>kryo</artifactId>
- <version>2.23.0</version>
- </dependency>
<dependency>
<groupId>com.github.kevinsawicki</groupId>
<artifactId>http-request</artifactId>
<groupId>com.akiban</groupId>
<artifactId>akiban-persistit</artifactId>
</dependency>
- <dependency>
- <groupId>com.esotericsoftware.kryo</groupId>
- <artifactId>kryo</artifactId>
- </dependency>
<dependency>
<groupId>org.codehaus.sonar</groupId>
<artifactId>sonar-core</artifactId>
*/
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;
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;
private Persistit persistit;
private Volume volume;
private final TempFolder tempFolder;
- private Kryo kryo;
public Caches(TempFolder tempFolder) {
this.tempFolder = tempFolder;
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");