Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (4.3/Cloud)

73882: Merged V4.2-BUG-FIX (4.2.3) to HEAD-BUG-FIX (4.3/Cloud)
      73714: Merged DEV to V4.2-BUG-FIX (4.2.3)
         73713 : MNT-11688 : Class cast exception when parsing preferences in Test Code.
            - Use Object.toString() for value to prevent Class cast exception


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@74828 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Will Abson
2014-06-25 16:11:18 +00:00
parent 9b24f70197
commit c84f6847dd

View File

@@ -45,7 +45,7 @@ public class Preference implements Serializable, ExpectedComparison, Comparable<
public static Preference parsePreference(JSONObject jsonObject)
{
String id = (String)jsonObject.get("id");
String value = (String)jsonObject.get("value");
String value = jsonObject.get("value").toString();
Preference preference = new Preference(id, value);
return preference;
}