From 8f489c1f6662dfc305a162b4677691021f33c6db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20L=C3=A9aut=C3=A9?= Date: Mon, 21 Sep 2015 09:55:44 -0700 Subject: [PATCH] fix type cast warnings --- .../io/druid/segment/indexing/DataSchemaTest.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/server/src/test/java/io/druid/segment/indexing/DataSchemaTest.java b/server/src/test/java/io/druid/segment/indexing/DataSchemaTest.java index 8a54de53763..9059a7928d9 100644 --- a/server/src/test/java/io/druid/segment/indexing/DataSchemaTest.java +++ b/server/src/test/java/io/druid/segment/indexing/DataSchemaTest.java @@ -17,6 +17,7 @@ package io.druid.segment.indexing; +import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.InjectableValues; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.collect.ImmutableList; @@ -56,7 +57,7 @@ public class DataSchemaTest new TimestampSpec("time", "auto", null), new DimensionsSpec(ImmutableList.of("dimB", "dimA"), null, null) ) - ), Map.class + ), new TypeReference>() {} ); DataSchema schema = new DataSchema( @@ -85,7 +86,7 @@ public class DataSchemaTest new TimestampSpec("time", "auto", null), new DimensionsSpec(ImmutableList.of("time", "dimA", "dimB", "col2"), ImmutableList.of("dimC"), null) ) - ), Map.class + ), new TypeReference>() {} ); DataSchema schema = new DataSchema( @@ -114,7 +115,7 @@ public class DataSchemaTest new TimestampSpec("time", "auto", null), new DimensionsSpec(ImmutableList.of("time", "dimA", "dimB", "metric1"), ImmutableList.of("dimC"), null) ) - ), Map.class + ), new TypeReference>() {} ); DataSchema schema = new DataSchema( @@ -189,13 +190,13 @@ public class DataSchemaTest Assert.assertEquals( new DataSchema( "test", - jsonMapper.convertValue( + jsonMapper.>convertValue( new StringInputRowParser( new JSONParseSpec( new TimestampSpec("xXx", null, null), new DimensionsSpec(null, null, null) ) - ), Map.class + ), new TypeReference>() {} ), new AggregatorFactory[]{ new DoubleSumAggregatorFactory("metric1", "col1")