Fixing compilation warning

This commit is contained in:
Luca Frosini 2019-12-05 17:16:56 +01:00
parent 9bfabbb5d0
commit 7883dfc162
1 changed files with 2 additions and 2 deletions

View File

@ -215,9 +215,9 @@ public abstract class ISMapper {
* @throws JsonMappingException * @throws JsonMappingException
* @throws IOException * @throws IOException
*/ */
public static <ISM extends ISManageable> ISM unmarshalWithReader(Class<ISM> reader, String string) public static <ISM extends ISManageable> ISM unmarshalWithReader(Class<ISM> clz, String string)
throws JsonParseException, JsonMappingException, IOException { throws JsonParseException, JsonMappingException, IOException {
return mapper.readerFor(reader).readValue(string); return mapper.readerFor(clz).readValue(string);
} }
public static <ISM extends ISManageable> List<ISM> unmarshalList(Class<ISM> clz, String string) public static <ISM extends ISManageable> List<ISM> unmarshalList(Class<ISM> clz, String string)