Skip to content

Commit 1ede4f5

Browse files
committed
JAVA-1403: Deprecated MapReduceOutput.getServerUsed()
1 parent 8a34cdc commit 1ede4f5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/com/mongodb/MapReduceOutput.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ public DBObject getCommand() {
136136
* Get the server that the map reduce command was run on.
137137
*
138138
* @return a ServerAddress of the server that the command ran against.
139+
* @deprecated this method will be removed in the next major release
139140
*/
141+
@Deprecated
142+
@SuppressWarnings("deprecation")
140143
public ServerAddress getServerUsed() {
141144
return _commandResult.getServerUsed();
142145
}

0 commit comments

Comments
 (0)