bugfix uuids need a quote
This commit is contained in:
parent
6417930897
commit
4522f36e67
4 changed files with 9 additions and 6 deletions
|
|
@ -5,12 +5,12 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>nl.sander</groupId>
|
<groupId>nl.sander</groupId>
|
||||||
<artifactId>jsonthingy-pom</artifactId>
|
<artifactId>jsonthingy-pom</artifactId>
|
||||||
<version>1.2</version>
|
<version>1.3</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<name>JsonToy-JMH</name>
|
<name>JsonToy-JMH</name>
|
||||||
<artifactId>jsonthingy-jmhtests</artifactId>
|
<artifactId>jsonthingy-jmhtests</artifactId>
|
||||||
<version>1.2</version>
|
<version>1.3</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
||||||
|
|
@ -5,12 +5,12 @@
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>nl.sander</groupId>
|
<groupId>nl.sander</groupId>
|
||||||
<artifactId>jsonthingy-pom</artifactId>
|
<artifactId>jsonthingy-pom</artifactId>
|
||||||
<version>1.2</version>
|
<version>1.3</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<name>JsonToy</name>
|
<name>JsonToy</name>
|
||||||
<artifactId>jsonthingy</artifactId>
|
<artifactId>jsonthingy</artifactId>
|
||||||
<version>1.2</version>
|
<version>1.3</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
||||||
|
|
@ -80,12 +80,15 @@ public class Mapper {
|
||||||
b.append("\"");
|
b.append("\"");
|
||||||
Mapper.escape(b, (Character) value);
|
Mapper.escape(b, (Character) value);
|
||||||
b.append("\"");
|
b.append("\"");
|
||||||
|
} else if (type == UUID.class) {
|
||||||
|
b.append("\"");
|
||||||
|
b.append(value.toString());
|
||||||
|
b.append("\"");
|
||||||
} else if (type == Boolean.class
|
} else if (type == Boolean.class
|
||||||
|| type == Integer.class
|
|| type == Integer.class
|
||||||
|| type == Long.class
|
|| type == Long.class
|
||||||
|| type == Float.class
|
|| type == Float.class
|
||||||
|| type == Double.class
|
|| type == Double.class
|
||||||
|| type == UUID.class
|
|
||||||
|| type == Byte.class
|
|| type == Byte.class
|
||||||
|| type == Short.class
|
|| type == Short.class
|
||||||
|| type == BigInteger.class
|
|| type == BigInteger.class
|
||||||
|
|
|
||||||
2
pom.xml
2
pom.xml
|
|
@ -5,7 +5,7 @@
|
||||||
<name>JsonToy</name>
|
<name>JsonToy</name>
|
||||||
<groupId>nl.sander</groupId>
|
<groupId>nl.sander</groupId>
|
||||||
<artifactId>jsonthingy-pom</artifactId>
|
<artifactId>jsonthingy-pom</artifactId>
|
||||||
<version>1.2</version>
|
<version>1.3</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue