File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
driver-core/src/main/com/mongodb/client/model
driver-legacy/src/main/com/mongodb/client/model Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,9 @@ public Bson getHint() {
51
51
* Gets the hint string to apply.
52
52
*
53
53
* @return the hint string, which should be the name of an existing index
54
+ * @deprecated Prefer {@link #getHint()}
54
55
*/
56
+ @ Deprecated
55
57
@ Nullable
56
58
public String getHintString () {
57
59
return hintString ;
@@ -73,7 +75,9 @@ public CountOptions hint(@Nullable final Bson hint) {
73
75
*
74
76
* @param hint the name of the index which should be used for the operation
75
77
* @return this
78
+ * @deprecated Prefer {@link #hint(Bson)}
76
79
*/
80
+ @ Deprecated
77
81
public CountOptions hintString (@ Nullable final String hint ) {
78
82
this .hintString = hint ;
79
83
return this ;
Original file line number Diff line number Diff line change @@ -62,7 +62,9 @@ public DBObject getHint() {
62
62
* Gets the hint string to apply.
63
63
*
64
64
* @return the hint string, which should be the name of an existing index
65
+ * @deprecated Prefer {@link #getHint()}
65
66
*/
67
+ @ Deprecated
66
68
@ Nullable
67
69
public String getHintString () {
68
70
return hintString ;
@@ -84,7 +86,9 @@ public DBCollectionCountOptions hint(@Nullable final DBObject hint) {
84
86
*
85
87
* @param hint the name of the index which should be used for the operation
86
88
* @return this
89
+ * @deprecated Prefer {@link #hint(DBObject)}
87
90
*/
91
+ @ Deprecated
88
92
public DBCollectionCountOptions hintString (@ Nullable final String hint ) {
89
93
this .hintString = hint ;
90
94
return this ;
You can’t perform that action at this time.
0 commit comments