@@ -44,7 +44,7 @@ public final class ClientBulkWriteException extends MongoServerException {
44
44
@ Nullable
45
45
private final MongoException error ;
46
46
private final List <WriteConcernError > writeConcernErrors ;
47
- private final Map <Long , WriteError > writeErrors ;
47
+ private final Map <Integer , WriteError > writeErrors ;
48
48
@ Nullable
49
49
private final ClientBulkWriteResult partialResult ;
50
50
@@ -60,7 +60,7 @@ public final class ClientBulkWriteException extends MongoServerException {
60
60
public ClientBulkWriteException (
61
61
@ Nullable final MongoException error ,
62
62
@ Nullable final List <WriteConcernError > writeConcernErrors ,
63
- @ Nullable final Map <Long , WriteError > writeErrors ,
63
+ @ Nullable final Map <Integer , WriteError > writeErrors ,
64
64
@ Nullable final ClientBulkWriteResult partialResult ,
65
65
final ServerAddress serverAddress ) {
66
66
super (message (error , writeConcernErrors , writeErrors , partialResult , serverAddress ), serverAddress );
@@ -79,7 +79,7 @@ public ClientBulkWriteException(
79
79
private static String message (
80
80
@ Nullable final MongoException error ,
81
81
@ Nullable final List <WriteConcernError > writeConcernErrors ,
82
- @ Nullable final Map <Long , WriteError > writeErrors ,
82
+ @ Nullable final Map <Integer , WriteError > writeErrors ,
83
83
@ Nullable final ClientBulkWriteResult partialResult ,
84
84
final ServerAddress serverAddress ) {
85
85
return "Client-level bulk write operation error on server " + serverAddress + "."
@@ -122,7 +122,7 @@ public List<WriteConcernError> getWriteConcernErrors() {
122
122
* @see ClientBulkWriteResult.Verbose#getUpdateResults()
123
123
* @see ClientBulkWriteResult.Verbose#getDeleteResults()
124
124
*/
125
- public Map <Long , WriteError > getWriteErrors () {
125
+ public Map <Integer , WriteError > getWriteErrors () {
126
126
return writeErrors ;
127
127
}
128
128
0 commit comments