Skip to content

Commit 86b34fa

Browse files
committed
Fix documentation on BitstreamService.replace
1 parent df9350d commit 86b34fa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

dspace-api/src/main/java/org/dspace/content/service/BitstreamService.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ public Bitstream create(Context context, Bundle bundle, InputStream is)
8686
throws IOException, SQLException, AuthorizeException;
8787

8888
/**
89-
* Replaces {@code oldBitstream} with Replaces {@code oldBitstream}.
90-
* Copies all metadata from {@code oldBitstream} to {@code oldBitstream}
89+
* Replaces {@code oldBitstream} with {@code newBitstream}.
90+
* Copies all metadata from {@code oldBitstream} to {@code newBitstream}
9191
* and sets in the same order in the bundle list.
92+
* <br>
93+
* The {@code oldBitstream} is deleted, along with any Bitstreams derived from it via {@code filter-media}.
9294
*
9395
* @param context the current DSpace context
9496
* @param oldBitstream the bitstream object we want to replace

0 commit comments

Comments
 (0)