v1.6 improved LocalDate support
This commit is contained in:
parent
b3687452f6
commit
f483844d65
4 changed files with 7 additions and 8 deletions
|
|
@ -5,12 +5,12 @@
|
|||
<parent>
|
||||
<groupId>nl.sander</groupId>
|
||||
<artifactId>jsonthingy-pom</artifactId>
|
||||
<version>1.5</version>
|
||||
<version>1.6</version>
|
||||
</parent>
|
||||
|
||||
<name>JsonToy-JMH</name>
|
||||
<artifactId>jsonthingy-jmhtests</artifactId>
|
||||
<version>1.5</version>
|
||||
<version>1.6</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<properties>
|
||||
|
|
|
|||
|
|
@ -5,12 +5,12 @@
|
|||
<parent>
|
||||
<groupId>nl.sander</groupId>
|
||||
<artifactId>jsonthingy-pom</artifactId>
|
||||
<version>1.5</version>
|
||||
<version>1.6</version>
|
||||
</parent>
|
||||
|
||||
<name>JsonToy</name>
|
||||
<artifactId>jsonthingy</artifactId>
|
||||
<version>1.5</version>
|
||||
<version>1.6</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<properties>
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@ import java.io.IOException;
|
|||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.temporal.Temporal;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
|
|
@ -82,7 +81,7 @@ public class Mapper {
|
|||
b.append("\"");
|
||||
Mapper.escape(b, (Character) value);
|
||||
b.append("\"");
|
||||
} else if (type == UUID.class || type == LocalDate.class || type == LocalDateTime.class || type.isEnum()) {
|
||||
} else if (type == UUID.class || value instanceof Temporal || type.isEnum()) {
|
||||
b.append("\"");
|
||||
b.append(value.toString());
|
||||
b.append("\"");
|
||||
|
|
|
|||
2
pom.xml
2
pom.xml
|
|
@ -5,7 +5,7 @@
|
|||
<name>JsonToy</name>
|
||||
<groupId>nl.sander</groupId>
|
||||
<artifactId>jsonthingy-pom</artifactId>
|
||||
<version>1.5</version>
|
||||
<version>1.6</version>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<modules>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue