We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44a1123 commit 7c7e704Copy full SHA for 7c7e704
spring-data-mongodb/src/main/java/org/springframework/data/mongodb/gridfs/GridFsUpload.java
@@ -24,7 +24,6 @@
24
import org.springframework.data.util.Lazy;
25
import org.springframework.lang.Nullable;
26
import org.springframework.util.Assert;
27
-import org.springframework.util.StreamUtils;
28
29
import com.mongodb.client.gridfs.model.GridFSFile;
30
@@ -74,7 +73,7 @@ public String getFilename() {
74
73
75
@Override
76
public InputStream getContent() {
77
- return dataStream.orElse(StreamUtils.emptyInput());
+ return dataStream.orElse(InputStream.nullInputStream());
78
}
79
80
0 commit comments