Skip to content

Commit 40ac58a

Browse files
authored
Update README.md
Minor change and fix typo
1 parent cece5d2 commit 40ac58a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

msgpack-jackson/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Java
139139

140140
### Serialize/Deserialize POJO as MessagePack array type to keep compatibility with msgpack-java:0.6
141141

142-
In msgpack-java:0.6 or earlier, a POJO was serliazed and deserialized as an array of values in MessagePack format. The order of values depended on an internal order of a Java class's variables and it was a naive way and caused some issues since Java class's variables order isn't guaranteed over Java implementations.
142+
In msgpack-java:0.6 or earlier, a POJO was serliazed and deserialized as an array of values in MessagePack format. The order of values depended on an internal order of Java class's variables and it was a naive way and caused some issues since Java class's variables order isn't guaranteed over Java implementations.
143143

144144
On the other hand, jackson-databind serializes and deserializes a POJO as a key-value object. So this `jackson-dataformat-msgpack` also handles POJOs in the same way. As a result, it isn't compatible with msgpack-java:0.6 or earlier in serialization and deserialization of POJOs.
145145

@@ -172,7 +172,7 @@ But if you want to make this library handle POJOs in the same way as msgpack-jav
172172

173173
### Deserialize multiple values without closing an input stream
174174

175-
`com.fasterxml.jackson.databind.ObjectMapper` closes an input stream by default after it reads a value. If you want to deserialize multiple values in a row witout closing an output stream, set `JsonParser.Feature.AUTO_CLOSE_SOURCE` to false.
175+
`com.fasterxml.jackson.databind.ObjectMapper` closes an input stream by default after it reads a value. If you want to deserialize multiple values in a row without closing an output stream, set `JsonParser.Feature.AUTO_CLOSE_SOURCE` to false.
176176

177177
```java
178178
MessagePacker packer = MessagePack.newDefaultPacker(new FileOutputStream(tempFile));
@@ -221,7 +221,7 @@ When you want to use non-String value as a key of Map, use `MessagePackKeySerial
221221

222222
### Deserialize extension types with ExtensionTypeCustomDeserializers
223223

224-
`ExtensionTypeCustomDeserializers` helps you to deserialize extension types.
224+
`ExtensionTypeCustomDeserializers` helps you to deserialize extension types easily.
225225

226226
#### With target Java class
227227

0 commit comments

Comments
 (0)