Skip to content

Commit fb39bd4

Browse files
committed
Deprecate GridFSFile constructors
JAVA-3034
1 parent 057452c commit fb39bd4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

driver-core/src/main/com/mongodb/client/gridfs/model/GridFSFile.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ public final class GridFSFile {
5656
* @param uploadDate the upload date of the file
5757
* @param md5 the hash of the files contents
5858
* @param metadata the optional metadata for the file
59+
* @deprecated there is no replacement for this constructor
5960
*/
61+
@Deprecated
6062
public GridFSFile(final BsonValue id, final String filename, final long length, final int chunkSize, final Date uploadDate,
6163
@Nullable final String md5, final Document metadata) {
6264
this(id, filename, length, chunkSize, uploadDate, md5, metadata, null);
@@ -75,7 +77,9 @@ public GridFSFile(final BsonValue id, final String filename, final long length,
7577
* @param md5 the hash of the files contents
7678
* @param metadata the optional metadata for the file
7779
* @param extraElements any extra data stored in the document
80+
* @deprecated there is no replacement for this constructor
7881
*/
82+
@Deprecated
7983
public GridFSFile(final BsonValue id, final String filename, final long length, final int chunkSize, final Date uploadDate,
8084
@Nullable final String md5, @Nullable final Document metadata, @Nullable final Document extraElements) {
8185
this.id = notNull("id", id);

0 commit comments

Comments
 (0)