From 2ea8180a79b7eed3c67dfc6ff4e7f9ff1a81bddf Mon Sep 17 00:00:00 2001 From: cagache Date: Fri, 6 Sep 2019 08:50:49 +0300 Subject: [PATCH] Code review comments --- .../src/main/java/org/alfresco/rest/v0/HoldsAPI.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/HoldsAPI.java b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/HoldsAPI.java index ae4cf38213..113eb01cb5 100644 --- a/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/HoldsAPI.java +++ b/rm-automation/rm-automation-community-rest-api/src/main/java/org/alfresco/rest/v0/HoldsAPI.java @@ -165,8 +165,7 @@ public class HoldsAPI extends BaseAPI */ public HttpResponse addItemToHold(String user, String password, String itemNodeRef, String holdName) { - return addItemsToHolds(user, password, SC_OK, Collections.singletonList(itemNodeRef), - Collections.singletonList(holdName)); + return addItemsToHolds(user, password, Collections.singletonList(itemNodeRef), Collections.singletonList(holdName)); } /** @@ -178,8 +177,7 @@ public class HoldsAPI extends BaseAPI * @param holdNames the list of holds * @return The HTTP response */ - public HttpResponse addItemsToHolds(String user, String password, List itemNodeRefs, - List holdNames) + public HttpResponse addItemsToHolds(String user, String password, List itemNodeRefs, List holdNames) { return addItemsToHolds(user, password, SC_OK, itemNodeRefs, holdNames); } @@ -252,8 +250,7 @@ public class HoldsAPI extends BaseAPI */ public HttpResponse removeItemFromHold(String user, String password, String itemNodeRef, String holdName) { - return removeItemsFromHolds(user, password, SC_OK, Collections.singletonList(itemNodeRef), - Collections.singletonList(holdName)); + return removeItemsFromHolds(user, password, Collections.singletonList(itemNodeRef), Collections.singletonList(holdName)); } /** @@ -265,8 +262,7 @@ public class HoldsAPI extends BaseAPI * @param holdNames the list of hold names * @return The HTTP response */ - public HttpResponse removeItemsFromHolds(String user, String password, List itemNodeRefs, - List holdNames) + public HttpResponse removeItemsFromHolds(String user, String password, List itemNodeRefs, List holdNames) { return removeItemsFromHolds(user, password, SC_OK, itemNodeRefs, holdNames); }