Skip to content

Commit 13a46b1

Browse files
committed
Deprecate DBCursor#addSpecial
JAVA-3026
1 parent de92a3f commit 13a46b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

driver-legacy/src/main/com/mongodb/DBCursor.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,10 @@ public int getBatchSize() {
292292
* @param value the value of the special query operator
293293
* @return {@code this} so calls can be chained
294294
* @mongodb.driver.manual reference/operator Special Operators
295+
* @deprecated Prefer per-operator methods, e.g. {@link #comment(String)}, {@link #explain()}, etc.
295296
*/
296297
@SuppressWarnings("deprecation")
298+
@Deprecated
297299
public DBCursor addSpecial(@Nullable final String name, @Nullable final Object value) {
298300
if (name == null || value == null) {
299301
return this;

0 commit comments

Comments
 (0)