Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-1152

Names of Xml attributes and Class member variables are inconsistent

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • trunk
    • None
    • client, general
    • None
    • QA

    Description

      In two classes, i.e., FeedLookupResult.java :

      @XmlElement(name = "feed")
      private FeedProperties[] elements;
      

      and InstancesResult.java

      @XmlElement(name="params")
      public KeyValuePair[] wfParams;
      

      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

      Attachments

        1. FALCON-1152.patch
          2 kB
          Ajay Yadav

        Issue Links

          Activity

            People

              ajayyadava Ajay Yadav
              karishmag9 Karishma Gulati
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: