return groupsParser.parseGroupInfos(result);
}
@Override
public void addGroups(String... groups) throws RestApiException {
String restPath = getRequestPath() + "/groups";
<BUG>Map<String, List<String>> groupMap = new HashMap<String, List<String>>();
groupMap.put("groups", Arrays.asList(groups));
</BUG>
String json = gerritRestClient.getGson().toJson(groupMap);
gerritRestClient.postRequest(restPath, json);

return groupsParser.parseGroupInfos(result);
}
@Override
public void addGroups(String... groups) throws RestApiException {
String restPath = getRequestPath() + "/groups";
Map<String, List<String>> groupMap =
Collections.singletonMap("groups", Arrays.asList(groups));
String json = gerritRestClient.getGson().toJson(groupMap);
gerritRestClient.postRequest(restPath, json);
