Skip to content

Commit 9235602

Browse files
committed
Minor fixes
1 parent 31feb4c commit 9235602

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

msgpack-jackson/src/main/java/org/msgpack/jackson/dataformat/MessagePackExtensionType.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ public class MessagePackExtensionType
1414
private final byte type;
1515
private final byte[] data;
1616

17-
public MessagePackExtensionType(byte extType, byte[] extData)
17+
public MessagePackExtensionType(byte type, byte[] data)
1818
{
19-
this.type = extType;
20-
this.data = extData;
19+
this.type = type;
20+
this.data = data;
2121
}
2222

2323
public byte getType()

msgpack-jackson/src/test/java/org/msgpack/jackson/dataformat/MessagePackGeneratorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public void testGeneratorShouldWriteObject()
7676
hashMap.put("childArray", childArray);
7777
// #10
7878
byte[] hello = "hello".getBytes("UTF-8");
79-
hashMap.put("ext", new MessagePackExtensionType(17, hello));
79+
hashMap.put("ext", new MessagePackExtensionType((byte) 17, hello));
8080

8181
long bitmap = 0;
8282
byte[] bytes = objectMapper.writeValueAsBytes(hashMap);

0 commit comments

Comments
 (0)