mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
APPS-581: Fix Classification UnitTests that were failing due to org.json library version upgrade
This commit is contained in:
@@ -238,7 +238,7 @@ public final class WebScriptUtils
|
||||
|
||||
try
|
||||
{
|
||||
value = jsonObject.get(key).toString();
|
||||
value = jsonObject.getString(key);
|
||||
if (checkValue && isBlank(value))
|
||||
{
|
||||
throw new WebScriptException(Status.STATUS_BAD_REQUEST, "The value is missing for the key '" + key + "'.");
|
||||
@@ -413,7 +413,7 @@ public final class WebScriptUtils
|
||||
mandatory("jsonObject", jsonObject);
|
||||
mandatoryString("key", key);
|
||||
|
||||
JSONObject value = null;
|
||||
JSONObject value;
|
||||
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user