Skip to content

Commit 0e76118

Browse files
authored
Refresh test entity class. (#1645)
Closes #1644.
1 parent 057fe64 commit 0e76118

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

Diff for: src/test/java/org/springframework/data/couchbase/domain/UserAnnotatedTouchOnRead.java

-17
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,6 @@
4141
@Document(expiry = 1, touchOnRead = true)
4242
public class UserAnnotatedTouchOnRead extends User implements Serializable {
4343

44-
JsonNode custom = new ObjectNode(JsonNodeFactory.instance);
45-
private void writeObject(ObjectOutputStream out) throws IOException {
46-
out.defaultWriteObject();
47-
if(custom== null){
48-
out.writeBoolean(false);
49-
} else {
50-
out.writeBoolean(true);
51-
new ObjectMapper().configure(JsonGenerator.Feature.AUTO_CLOSE_TARGET, false).writeValue((OutputStream)out, custom);
52-
}
53-
}
54-
55-
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
56-
in.defaultReadObject();
57-
if(in.readBoolean()){
58-
this.custom = new ObjectMapper().configure(JsonParser.Feature.AUTO_CLOSE_SOURCE, false).readValue((InputStream)in, JsonNode.class);
59-
}
60-
}
6144
public UserAnnotatedTouchOnRead(String id, String firstname, String lastname) {
6245
super(id, firstname, lastname);
6346
}

0 commit comments

Comments
 (0)