fix bug with jackson conversion

This commit is contained in:
Fangjin Yang 2012-11-06 11:56:48 -08:00
parent 68e5adde33
commit 34a221a586
1 changed files with 1 additions and 5 deletions

View File

@ -109,11 +109,7 @@ public class HadoopDruidIndexerConfig
}
}
final HadoopDruidIndexerConfig retVal = jsonMapper.convertValue(
argSpec, new TypeReference<Map<String, Object>>()
{
}
);
final HadoopDruidIndexerConfig retVal = jsonMapper.convertValue(argSpec, HadoopDruidIndexerConfig.class);
retVal.verify();
return retVal;
}