Skip to content

Commit aa6ffa0

Browse files
committed
use Smile instead
1 parent f52e5f1 commit aa6ffa0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

opengrok-indexer/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Portions Copyright (c) 2020-2020, Lubos Kosco <[email protected]>.
196196
</dependency>
197197
<dependency>
198198
<groupId>com.fasterxml.jackson.dataformat</groupId>
199-
<artifactId>jackson-dataformat-cbor</artifactId>
199+
<artifactId>jackson-dataformat-smile</artifactId>
200200
<version>${jackson.version}</version>
201201
</dependency>
202202
<dependency>

opengrok-indexer/src/main/java/org/opengrok/indexer/history/FileAnnotationCache.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
package org.opengrok.indexer.history;
2424

2525
import com.fasterxml.jackson.databind.ObjectMapper;
26-
import com.fasterxml.jackson.dataformat.cbor.databind.CBORMapper;
26+
import com.fasterxml.jackson.dataformat.smile.databind.SmileMapper;
2727
import io.micrometer.core.instrument.Counter;
2828
import io.micrometer.core.instrument.MeterRegistry;
2929
import org.jetbrains.annotations.Nullable;
@@ -64,7 +64,7 @@ public void initialize() {
6464
* Read annotation from a file.
6565
*/
6666
static Annotation readCache(File file) throws IOException {
67-
ObjectMapper mapper = new CBORMapper();
67+
ObjectMapper mapper = new SmileMapper();
6868
return new Annotation(mapper.readValue(file, AnnotationData.class));
6969
}
7070

@@ -154,7 +154,7 @@ public Annotation get(File file, @Nullable String rev) throws CacheException {
154154
}
155155

156156
private void writeCache(AnnotationData annotationData, File outfile) throws IOException {
157-
ObjectMapper mapper = new CBORMapper();
157+
ObjectMapper mapper = new SmileMapper();
158158
mapper.writeValue(outfile, annotationData);
159159
}
160160

0 commit comments

Comments
 (0)