mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 20:43:18 +00:00
[DS-2976] Ensure all database entities have a protected constructor
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
package org.dspace.content;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.sql.SQLException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
@@ -74,7 +75,13 @@ public class Bitstream extends DSpaceObject implements DSpaceObjectLegacySupport
|
||||
private transient BitstreamService bitstreamService;
|
||||
|
||||
|
||||
public Bitstream()
|
||||
/**
|
||||
* Protected constructor, create object using:
|
||||
* {@link org.dspace.content.service.BitstreamService#create(Context, Bundle, InputStream)}
|
||||
* or
|
||||
* {@link org.dspace.content.service.BitstreamService#create(Context, InputStream)}
|
||||
*/
|
||||
protected Bitstream()
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user