Skip to content

Commit 9f4287d

Browse files
committed
Deprecate md5-related GridFS methods in legacy API
JAVA-3035
1 parent fb39bd4 commit 9f4287d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

driver-legacy/src/main/com/mongodb/gridfs/GridFSFile.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ public void save() {
7373
* Verifies that the MD5 matches between the database and the local file. This should be called after transferring a file.
7474
*
7575
* @throws MongoException if there's a failure
76+
* @deprecated there is no replacement for this method
7677
*/
78+
@Deprecated
7779
public void validate() {
7880
if (fs == null) {
7981
throw new MongoException("no fs");
@@ -195,7 +197,9 @@ public void setMetaData(final DBObject metadata) {
195197
* Gets the observed MD5 during transfer
196198
*
197199
* @return md5
200+
* @deprecated there is no replacement for this method
198201
*/
202+
@Deprecated
199203
public String getMD5() {
200204
return md5;
201205
}

0 commit comments

Comments
 (0)