Skip to content

Commit

Permalink
Fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
amgciadev committed Aug 2, 2023
1 parent 4bd2cfd commit 724a4ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dspace-oai/src/main/java/org/dspace/xoai/util/ItemUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import com.lyncode.xoai.dataprovider.xml.xoai.Element;
import com.lyncode.xoai.dataprovider.xml.xoai.Metadata;
Expand Down Expand Up @@ -180,7 +180,9 @@ private static Element createBundlesElement(Context context, Item item) throws S
private static void addEmbargoField(Context context, Bitstream bitstream, Element bitstreamEl) throws SQLException {
GroupService groupService = EPersonServiceFactory.getInstance().getGroupService();
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<>();
// Account for cases where there could be more than one embargo policy
Expand Down

0 comments on commit 724a4ff

Please sign in to comment.