Maor Lipchuk has posted comments on this change.

Change subject: core: Add support to convert  json to Map
......................................................................


Patch Set 3:

(2 comments)

http://gerrit.ovirt.org/#/c/29022/3/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/JsonHelper.java
File 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/JsonHelper.java:

Line 33:         return mapToJson(input, true);
Line 34:     }
Line 35: 
Line 36:     public static Map<String, Object> jsonToMap(String jsonString) 
throws JsonParseException, JsonMappingException,
Line 37:             IOException {
> Agree
done
Line 38:         final ObjectMapper mapper = new ObjectMapper();
Line 39:         final MapType type = 
mapper.getTypeFactory().constructMapType(Map.class, String.class, Object.class);
Line 40:         final Map<String, Object> data = mapper.readValue(jsonString, 
type);
Line 41:         return data;


Line 37:             IOException {
Line 38:         final ObjectMapper mapper = new ObjectMapper();
Line 39:         final MapType type = 
mapper.getTypeFactory().constructMapType(Map.class, String.class, Object.class);
Line 40:         final Map<String, Object> data = mapper.readValue(jsonString, 
type);
Line 41:         return data;
> Why's everything final?
cp conflicts, removed
Line 42:     }


-- 
To view, visit http://gerrit.ovirt.org/29022
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I31a837449de1d350dae7a94a69d5d62552474284
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Liron Aravot <[email protected]>
Gerrit-Reviewer: Maor Lipchuk <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to