-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.4
-
Component/s: Web API (REST or WS*)
-
Tags:
In the class org.nuxeo.ecm.automation.client.jaxrs.model.PropertyMap, I think there's a constructor that's not doing what it should:
public PropertyMap(Map<String, String> map)
{ map = new LinkedHashMap<String, String>(map); }It is reassigning the local variable, instead of the instance variable. The left part of the assignment should be preceded by 'this', or the parameter should be renamed.
Also, why Map<String, String>, when the instance variable is declared as LinkedHashMap<String, Object>?
I think it should be:
public PropertyMap(Map<String, Object> map)
{ this.map = new LinkedHashMap<String, String>(map); }