[
https://issues.apache.org/jira/browse/FALCON-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ajay Yadava closed FALCON-1152.
-------------------------------
> Names of Xml attributes and Class member variables are inconsistent
> --------------------------------------------------------------------
>
> Key: FALCON-1152
> URL: https://issues.apache.org/jira/browse/FALCON-1152
> Project: Falcon
> Issue Type: Improvement
> Components: client, general
> Affects Versions: trunk
> Environment: QA
> Reporter: Karishma Gulati
> Assignee: Ajay Yadava
> Attachments: FALCON-1152.patch
>
>
> In two classes, i.e., FeedLookupResult.java :
> {code}
> @XmlElement(name = "feed")
> private FeedProperties[] elements;
> {code}
> and InstancesResult.java
> {code}
> @XmlElement(name="params")
> public KeyValuePair[] wfParams;
> {code}
> the XML elements are of a different name from the class member variable
> names. So, when writing regression, when we use Gson to convert the json
> response to a class object, getElements( ) in FeedLookupResult.java gives
> null, even if there is feed information present in the Json response.
> The same is true for getWfParams( ) in InstancesResult.java as well
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)