Skip to content

Commit 2f89b9c

Browse files
committed
Fix 2 compile warnings
1 parent 5087767 commit 2f89b9c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/java/com/fasterxml/jackson/databind/jsonschema/TestReadJsonSchema.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
import java.util.*;
44

55
import com.fasterxml.jackson.databind.*;
6-
import com.fasterxml.jackson.databind.jsonschema.JsonSchema;
76

87
/**
98
* Trivial test to ensure <code>JsonSchema</code> can be also deserialized
109
*/
11-
@SuppressWarnings("deprecation")
1210
public class TestReadJsonSchema
1311
extends com.fasterxml.jackson.databind.BaseMapTest
1412
{
@@ -48,6 +46,7 @@ static class Schemable {
4846
* Verifies that a simple schema that is serialized can be
4947
* deserialized back to equal schema instance
5048
*/
49+
@SuppressWarnings("deprecation")
5150
public void testDeserializeSimple() throws Exception
5251
{
5352
ObjectMapper mapper = new ObjectMapper();

src/test/java/com/fasterxml/jackson/databind/misc/BeanPropertyMapTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public void testArrayOutOfBounds884() throws Exception
3232
props.add(new ObjectIdValueProperty(new MyObjectIdReader("pk"), md));
3333
props.add(new ObjectIdValueProperty(new MyObjectIdReader("firstName"), md));
3434
BeanPropertyMap propMap = new BeanPropertyMap(false, props,
35-
new HashMap<String,List<PropertyName>>());
35+
new HashMap<String,List<PropertyName>>(),
36+
Locale.getDefault());
3637
propMap = propMap.withProperty(new ObjectIdValueProperty(new MyObjectIdReader("@id"), md));
3738
assertNotNull(propMap);
3839
}

0 commit comments

Comments
 (0)