Skip to content

Commit

Permalink
support for java.io.Serializable as a known type; fixes #1104
Browse files Browse the repository at this point in the history
  • Loading branch information
stoicflame committed Mar 21, 2022
1 parent f822dc7 commit 80384e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ protected Map<String, JsonType> loadKnownTypes() {
knownTypes.put(java.net.URI.class.getName(), KnownJsonType.STRING);
knownTypes.put(java.net.URL.class.getName(), KnownJsonType.STRING);
knownTypes.put(java.lang.Object.class.getName(), KnownJsonType.OBJECT);
knownTypes.put(java.io.Serializable.class.getName(), KnownJsonType.OBJECT);
knownTypes.put(byte[].class.getName(), KnownJsonType.STRING);
knownTypes.put(java.nio.ByteBuffer.class.getName(), KnownJsonType.STRING);
knownTypes.put(DataHandler.class.getName(), KnownJsonType.STRING);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ protected Map<String, JsonType> loadKnownTypes() {
knownTypes.put(java.net.URI.class.getName(), KnownJsonType.STRING);
knownTypes.put(java.net.URL.class.getName(), KnownJsonType.STRING);
knownTypes.put(java.lang.Object.class.getName(), KnownJsonType.OBJECT);
knownTypes.put(java.io.Serializable.class.getName(), KnownJsonType.OBJECT);
knownTypes.put(byte[].class.getName(), KnownJsonType.STRING);
knownTypes.put(java.nio.ByteBuffer.class.getName(), KnownJsonType.STRING);
knownTypes.put(DataHandler.class.getName(), KnownJsonType.STRING);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ protected Map<String, XmlType> loadKnownTypes() {
knownTypes.put(java.net.URI.class.getName(), KnownXmlType.STRING);
knownTypes.put(javax.xml.datatype.Duration.class.getName(), KnownXmlType.DURATION);
knownTypes.put(java.lang.Object.class.getName(), KnownXmlType.ANY_TYPE);
knownTypes.put(java.io.Serializable.class.getName(), KnownXmlType.ANY_TYPE);
knownTypes.put(byte[].class.getName(), KnownXmlType.BASE64_BINARY);
knownTypes.put(java.nio.ByteBuffer.class.getName(), KnownXmlType.BASE64_BINARY);
knownTypes.put(java.awt.Image.class.getName(), KnownXmlType.BASE64_BINARY);
Expand Down

0 comments on commit 80384e8

Please sign in to comment.