Skip to content

Commit

Permalink
2.5.0-SNAPSHOT ready
Browse files Browse the repository at this point in the history
  • Loading branch information
jdereg committed Apr 7, 2024
1 parent a2c24a1 commit cd6c325
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
### Revision History
* 2.5.0-SNAPSHOT
* Wanted: DateTimeFormatter added as a supported conversion (to/from String, to/from Map)
* 2.4.9
* Updated to allow the project to be compiled by versions of JDK > 1.8 yet still generate class file format 52 .class files so that they can be executed on JDK 1.8+ and up.
* Incorporated @AxataDarji GraphComparator changes that reduce cyclomatic code complexity (refactored to smaller methods)
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>com.cedarsoftware</groupId>
<artifactId>java-util</artifactId>
<packaging>jar</packaging>
<version>2.4.9</version>
<version>2.5.0-SNAPSHOT</version>
<description>Java Utilities</description>
<url>https://github.com/jdereg/java-util</url>

Expand Down Expand Up @@ -33,7 +33,7 @@
<version.junit-jupiter-api>5.10.2</version.junit-jupiter-api>
<version.junit-jupiter-params>5.10.2</version.junit-jupiter-params>
<version.assertj-core>3.25.3</version.assertj-core>
<version.json-io>4.14.1</version.json-io>
<version.json-io>4.19.13</version.json-io>
<version.mockito-junit-jupiter>4.11.0</version.mockito-junit-jupiter>
<version.agrona>1.21.1</version.agrona>

Expand Down
7 changes: 2 additions & 5 deletions src/test/java/com/cedarsoftware/util/TestGraphComparator.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
import java.util.TreeMap;
import java.util.TreeSet;

import com.cedarsoftware.util.io.JsonReader;
import com.cedarsoftware.util.io.JsonWriter;
import com.cedarsoftware.io.JsonIo;
import org.junit.jupiter.api.Test;

import static com.cedarsoftware.util.GraphComparator.Delta.Command.ARRAY_RESIZE;
Expand Down Expand Up @@ -2172,9 +2171,7 @@ private Dude getDude(String name, int age)
}

private Object clone(Object source) {

String json = JsonWriter.objectToJson(source);
return JsonReader.jsonToJava(json);
return JsonIo.deepCopy(source, null, null);
}

private GraphComparator.ID getIdFetcher()
Expand Down

0 comments on commit cd6c325

Please sign in to comment.