Skip to content

Commit

Permalink
include reference to connection handler
Browse files Browse the repository at this point in the history
  • Loading branch information
firestar committed Nov 11, 2023
1 parent 32582ad commit 7f46b02
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/groovy/nucleodb.library.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = 'com.nucleodb'
version = '1.9.26'
version = '1.9.27'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ public <T> T copy(Class<T> clazz) {
.findAndRegisterModules()
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
try {
Serializer.log("Connection Copy");
Serializer.log(this);
T obj = om.readValue(om.writeValueAsString(this), clazz);
Serializer.log(obj);
((Connection)obj).connectionHandler = this.connectionHandler;
return obj;
} catch (JsonProcessingException e) {
e.printStackTrace();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ public <T> T copy(Class<T> clazz) {
.findAndRegisterModules()
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
try {
Serializer.log("Data Entry Copy");
Serializer.log(this);
T obj = om.readValue(om.writeValueAsString(this), clazz);
Serializer.log(obj);
return obj;
} catch (JsonProcessingException e) {
e.printStackTrace();
Expand Down

0 comments on commit 7f46b02

Please sign in to comment.