Fix style issues

(cherry picked from commit 724a4ffb0e)
This commit is contained in:
Agustina Martinez
2023-08-02 18:01:07 +01:00
committed by github-actions[bot]
parent f330e36528
commit beaf40dd9b

View File

@@ -13,9 +13,9 @@ import java.io.InputStream;
import java.sql.SQLException; import java.sql.SQLException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
import java.util.List;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.List;
import com.lyncode.xoai.dataprovider.xml.xoai.Element; import com.lyncode.xoai.dataprovider.xml.xoai.Element;
import com.lyncode.xoai.dataprovider.xml.xoai.Metadata; import com.lyncode.xoai.dataprovider.xml.xoai.Metadata;
@@ -180,7 +180,9 @@ public class ItemUtils {
private static void addEmbargoField(Context context, Bitstream bitstream, Element bitstreamEl) throws SQLException { private static void addEmbargoField(Context context, Bitstream bitstream, Element bitstreamEl) throws SQLException {
GroupService groupService = EPersonServiceFactory.getInstance().getGroupService(); GroupService groupService = EPersonServiceFactory.getInstance().getGroupService();
Group anonymousGroup = groupService.findByName(context, Group.ANONYMOUS); Group anonymousGroup = groupService.findByName(context, Group.ANONYMOUS);
List<ResourcePolicy> policies = authorizeService.findPoliciesByDSOAndType(context, bitstream, ResourcePolicy.TYPE_CUSTOM); List<ResourcePolicy> policies = authorizeService.findPoliciesByDSOAndType(context,
bitstream,
ResourcePolicy.TYPE_CUSTOM);
List<Date> embargoDates = new ArrayList<>(); List<Date> embargoDates = new ArrayList<>();
// Account for cases where there could be more than one embargo policy // Account for cases where there could be more than one embargo policy