Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Commit

Permalink
Merge branch '2.6'
Browse files Browse the repository at this point in the history
Conflicts:
	pom.xml
	release-notes/VERSION
  • Loading branch information
cowtowncoder committed Jan 28, 2016
2 parents 32b3648 + 17a63ad commit a1432ca
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ Project: jackson-dataformat-cbor

#14: Add support for dynamically changing `CBORGenerator.Feature`s

2.6.5 (not yet released)
2.6.6 (not yet released)

#18: Correct parsing of zero length byte strings
(reported, fix suggested by philipa@github)

2.6.5 (19-Jan-2016)

#15: CBORParser.getNumberType returns DOUBLE even if the generator has been fed with a float
(reported by Adrien G)
Expand All @@ -28,6 +33,7 @@ No changes since 2.6.2

No changes since 2.5

2.5.5 (07-Dec-2015)
2.5.4 (09-Jun-2015)
2.5.3 (24-Apr-2015)
2.5.2 (29-Mar-2015)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

public final class CBORParser extends ParserMinimalBase
{
private final static byte[] NO_BYTES = new byte[0];

/**
* Enumeration that defines all togglable features for CBOR generators.
*/
Expand Down Expand Up @@ -2078,6 +2080,9 @@ protected byte[] _finishBytes(int len) throws IOException
{
// First, simple: non-chunked
if (len >= 0) {
if (len == 0) {
return NO_BYTES;
}
byte[] b = new byte[len];
if (_inputPtr >= _inputEnd) {
loadMoreGuaranteed();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public Bytes() { }
private final ObjectMapper MAPPER = cborMapper();

public void testSmallBinaryValues() throws Exception {
_testBinary(0);
_testBinary(1);
_testBinary(20);
_testBinary(100);
Expand Down

0 comments on commit a1432ca

Please sign in to comment.