Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
package net.spy.memcached.transcoders;

/*
import com.fasterxml.jackson.databind.DatabindException;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand All @@ -39,13 +38,11 @@
import static net.spy.memcached.transcoders.TranscoderUtils.SPECIAL_INT;
import static net.spy.memcached.transcoders.TranscoderUtils.SPECIAL_LONG;
import static net.spy.memcached.transcoders.TranscoderUtils.SPECIAL_MASK;
*/

/**
* Transcoder that serializes and deserializes objects to and from JSON.
* @param <T> the type of objects to be transcoded
*/
/*
public class JsonSerializingTranscoder<T> extends SpyObject implements Transcoder<T> {

private final ObjectMapper objectMapper;
Expand Down Expand Up @@ -82,23 +79,21 @@ public JsonSerializingTranscoder(int max, JavaType javaType) {
public int getMaxSize() {
return maxSize;
}
*/

/**
* Set the compression threshold to the given number of bytes. This
* transcoder will attempt to compress any data being stored that's larger
* than this.
*
* @param threshold the number of bytes
*/
/*
public void setCompressionThreshold(int threshold) {
cu.setCompressionThreshold(threshold);
}
*/

/**
* Set the character set for string value transcoding (defaults to UTF-8).
*/
/*
public void setCharset(String to) {
tu.setCharset(to);
}
Expand Down Expand Up @@ -234,4 +229,3 @@ private byte[] serialize(T o) {
}
}
}
*/
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package net.spy.memcached.transcoders;
/*

import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.ObjectMapper;

Expand All @@ -24,11 +24,10 @@
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.fail;
*/

/**
* Test the JSON serializing transcoder.
*/
/*
class JsonSerializingTranscoderTest {

private ObjectMapper mapper;
Expand Down Expand Up @@ -427,4 +426,3 @@ public TestPojo getInner() {
}
}
}
*/