Skip to content

Commit 5f2f57c

Browse files
committed
Minor warnings removal
1 parent b11f2f8 commit 5f2f57c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cbor/src/test/java/tools/jackson/dataformat/cbor/seq/ReadTreesTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void testReadTreeSequenceLowStringLimit() throws Exception
8282
assertTrue(it.hasNextValue());
8383
try {
8484
it.nextValue();
85-
fail("expected IllegalStateException");
85+
fail("expected StreamConstraintsException");
8686
} catch (StreamConstraintsException ise) {
8787
assertEquals("String length (2) exceeds the maximum length (1)", ise.getMessage());
8888
}

smile/src/main/java/tools/jackson/dataformat/smile/SmileGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ protected void _writeIntegralNumber(String enc, boolean neg) throws JacksonExcep
18201820
protected void _writeDecimalNumber(String enc) throws JacksonException
18211821
{
18221822
try {
1823-
writeNumber(NumberInput.parseBigDecimal(enc));
1823+
writeNumber(NumberInput.parseBigDecimal(enc, false));
18241824
} catch (NumberFormatException e) {
18251825
throw _constructWriteException("Invalid String representation for Number ('"+enc
18261826
+"'); can not write using Smile format");

0 commit comments

Comments
 (0)