Skip to content

Commit

Permalink
complete3
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Kovetskiy authored and Alex Kovetskiy committed Feb 18, 2017
1 parent fbbe2da commit 0c7ffd9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public ObjectMapper getMapper() {
}

@Override
public Map convertToMap(final Object value) {
public Map<String, Object> convertToMap(final Object value) {
try {
return (Map<String, Object>) mapper.convertValue(value, Map.class);
} catch (Exception ex) {
Expand All @@ -54,7 +54,7 @@ public <T> T convert(Map<String, Object> map, Class<T> dataType) {
}

@Override
public <T> T convert(Map<String, Object> map, TypeReference<T> dataType) {
public <T> T convert(Map<String, Object> map, TypeReference<T> dataType) {
try {
return mapper.convertValue(map, dataType);
} catch (Exception ex) {
Expand All @@ -63,7 +63,7 @@ public <T> T convert(Map<String, Object> map, TypeReference<T> dataType) {
}

@Override
public <T> T mapData(String data, Class<T> dataType) {
public <T> T mapData(String data, Class<T> dataType) {
try {
return mapper.readValue(data, dataType);
} catch (Exception ex) {
Expand Down

0 comments on commit 0c7ffd9

Please sign in to comment.