From 2ec1d9aa843841dc78b75b0b4003950d7bd4f977 Mon Sep 17 00:00:00 2001 From: uhm0311 Date: Mon, 10 Nov 2025 11:22:17 +0900 Subject: [PATCH] INTERNAL: Revert `Comment out JsonSerializingTranscoder class` --- .../transcoders/JsonSerializingTranscoder.java | 10 ++-------- .../transcoders/JsonSerializingTranscoderTest.java | 6 ++---- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/main/java/net/spy/memcached/transcoders/JsonSerializingTranscoder.java b/src/main/java/net/spy/memcached/transcoders/JsonSerializingTranscoder.java index 2de3dab80..b82c68d69 100644 --- a/src/main/java/net/spy/memcached/transcoders/JsonSerializingTranscoder.java +++ b/src/main/java/net/spy/memcached/transcoders/JsonSerializingTranscoder.java @@ -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; @@ -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 the type of objects to be transcoded */ -/* public class JsonSerializingTranscoder extends SpyObject implements Transcoder { private final ObjectMapper objectMapper; @@ -82,7 +79,7 @@ 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 @@ -90,15 +87,13 @@ public int getMaxSize() { * * @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); } @@ -234,4 +229,3 @@ private byte[] serialize(T o) { } } } -*/ diff --git a/src/test/java/net/spy/memcached/transcoders/JsonSerializingTranscoderTest.java b/src/test/java/net/spy/memcached/transcoders/JsonSerializingTranscoderTest.java index 062115a3a..2688f2b73 100644 --- a/src/test/java/net/spy/memcached/transcoders/JsonSerializingTranscoderTest.java +++ b/src/test/java/net/spy/memcached/transcoders/JsonSerializingTranscoderTest.java @@ -1,5 +1,5 @@ package net.spy.memcached.transcoders; -/* + import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.ObjectMapper; @@ -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; @@ -427,4 +426,3 @@ public TestPojo getInner() { } } } -*/