mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user