From 526f11d41be3ef56c59e0582b454f245607a5913 Mon Sep 17 00:00:00 2001 From: Tatu Saloranta Date: Tue, 2 Jul 2024 19:34:37 -0700 Subject: [PATCH] ... --- .../fasterxml/jackson/failing/ObjectIdSubTypes4607Test.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/test/java/com/fasterxml/jackson/failing/ObjectIdSubTypes4607Test.java b/src/test/java/com/fasterxml/jackson/failing/ObjectIdSubTypes4607Test.java index 3eb8a69261..dd380e76cb 100644 --- a/src/test/java/com/fasterxml/jackson/failing/ObjectIdSubTypes4607Test.java +++ b/src/test/java/com/fasterxml/jackson/failing/ObjectIdSubTypes4607Test.java @@ -31,10 +31,7 @@ static class NumberTypeDefinition implements TypeDefinition { @Test public void shouldHandleTypeDefinitionJson() throws Exception { final ObjectMapper mapper = newJsonMapper(); - String input = "{" + - " \"@type\": \"number\" " + - " }"; - TypeDefinition model = mapper.readValue(input, TypeDefinition.class); + TypeDefinition model = mapper.readValue("{ \"@type\": \"number\" }", TypeDefinition.class); Assertions.assertInstanceOf(NumberTypeDefinition.class, model); } }