From ccad87e78c38dacbd95790254e8946d7819a79b0 Mon Sep 17 00:00:00 2001 From: mikereiche Date: Wed, 11 Jan 2023 13:48:57 -0800 Subject: [PATCH] Refresh test entity class. Closes #1644. --- .../domain/UserAnnotatedTouchOnRead.java | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/test/java/org/springframework/data/couchbase/domain/UserAnnotatedTouchOnRead.java b/src/test/java/org/springframework/data/couchbase/domain/UserAnnotatedTouchOnRead.java index 0155f62ef..2b80ad8bd 100644 --- a/src/test/java/org/springframework/data/couchbase/domain/UserAnnotatedTouchOnRead.java +++ b/src/test/java/org/springframework/data/couchbase/domain/UserAnnotatedTouchOnRead.java @@ -41,23 +41,6 @@ @Document(expiry = 1, touchOnRead = true) public class UserAnnotatedTouchOnRead extends User implements Serializable { - JsonNode custom = new ObjectNode(JsonNodeFactory.instance); - private void writeObject(ObjectOutputStream out) throws IOException { - out.defaultWriteObject(); - if(custom== null){ - out.writeBoolean(false); - } else { - out.writeBoolean(true); - new ObjectMapper().configure(JsonGenerator.Feature.AUTO_CLOSE_TARGET, false).writeValue((OutputStream)out, custom); - } - } - - private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { - in.defaultReadObject(); - if(in.readBoolean()){ - this.custom = new ObjectMapper().configure(JsonParser.Feature.AUTO_CLOSE_SOURCE, false).readValue((InputStream)in, JsonNode.class); - } - } public UserAnnotatedTouchOnRead(String id, String firstname, String lastname) { super(id, firstname, lastname); }