Skip to content

Commit df6933e

Browse files
committed
Deprecate WriteResult.getLastConcern
JAVA-1337
1 parent 682edf6 commit df6933e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/com/mongodb/WriteResult.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ public CommandResult getCachedLastError(){
6666
* Gets the last {@link WriteConcern} used when calling getLastError().
6767
*
6868
* @return the write concern that was applied to the write operation
69+
* @deprecated there is no replacement for this method
6970
*/
71+
@Deprecated
7072
public WriteConcern getLastConcern(){
7173
return _lastConcern;
7274

@@ -199,7 +201,7 @@ public Object getField( String name ){
199201
/**
200202
* Returns whether or not the result is lazy, meaning that getLastError was not called automatically
201203
* @return true if the result is lazy
202-
* @deprecated Call {@code WriteResult.getLastConcern().isAcknowledged()} instead
204+
* @deprecated there is no replacement for this method
203205
*/
204206
@Deprecated
205207
public boolean isLazy(){

0 commit comments

Comments
 (0)