mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-08 10:34:25 +00:00
DS-3127: Process review feedback and fix tests
This commit is contained in:
@@ -430,16 +430,15 @@ public class BundleServiceImpl extends DSpaceObjectServiceImpl<Bundle> implement
|
||||
bundle.getName(), getIdentifiers(context, bundle)));
|
||||
|
||||
// Remove bitstreams
|
||||
Iterator<Bitstream> bitstreams = bundle.getBitstreams().iterator();
|
||||
while (bitstreams.hasNext()) {
|
||||
Bitstream bitstream = bitstreams.next();
|
||||
bitstreams.remove();
|
||||
List<Bitstream> bitstreams = new LinkedList<>(bundle.getBitstreams());
|
||||
bundle.getBitstreams().clear();
|
||||
for (Bitstream bitstream : bitstreams) {
|
||||
removeBitstream(context, bundle, bitstream);
|
||||
}
|
||||
|
||||
Iterator<Item> items = bundle.getItems().iterator();
|
||||
while (items.hasNext()) {
|
||||
Item item = items.next();
|
||||
List<Item> items = new LinkedList<>(bundle.getItems());
|
||||
bundle.getItems().clear();
|
||||
for (Item item : items) {
|
||||
item.removeBundle(bundle);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user