diff --git a/afterburner/src/test/java/perftest/TestJvmDeserPerf.java b/afterburner/src/test/java/perftest/TestJvmDeserPerf.java index fd5d2b9e..80c553be 100644 --- a/afterburner/src/test/java/perftest/TestJvmDeserPerf.java +++ b/afterburner/src/test/java/perftest/TestJvmDeserPerf.java @@ -104,7 +104,7 @@ public void test() protected int testDeser(ObjectMapper mapper, byte[] input, int reps) throws Exception { - JavaType type = TypeFactory.defaultInstance().constructType(MediaItem.class); + JavaType type = mapper.constructType(MediaItem.class); MediaItem item = null; for (int i = 0; i < reps; ++i) { item = mapper.readValue(input, 0, input.length, type);