diff --git a/source/java/org/alfresco/rest/framework/webscripts/ResourceWebScriptHelper.java b/source/java/org/alfresco/rest/framework/webscripts/ResourceWebScriptHelper.java index fceb903c97..c49df16d93 100644 --- a/source/java/org/alfresco/rest/framework/webscripts/ResourceWebScriptHelper.java +++ b/source/java/org/alfresco/rest/framework/webscripts/ResourceWebScriptHelper.java @@ -152,6 +152,7 @@ public class ResourceWebScriptHelper * @param selectParam * @return List bean property names potentially using JSON Pointer syntax */ + @SuppressWarnings("unchecked") public static List getSelectClause(String selectParam) throws InvalidArgumentException { if (selectParam == null) return Collections.emptyList(); @@ -167,8 +168,7 @@ public class ResourceWebScriptHelper { return Arrays.asList(selectedPropsTree.getText()); } - @SuppressWarnings("unchecked") - List children = (List)selectedPropsTree.getChildren(); + List children = (List) selectedPropsTree.getChildren(); if (children!= null && !children.isEmpty()) { List properties = new ArrayList(children.size());