@@ -110,7 +110,7 @@ private InternalRequest createInsertDocumentRequest(final DocumentCreateOptions
110110 }
111111
112112 protected <T > ResponseDeserializer <MultiDocumentEntity <DocumentCreateEntity <T >>> insertDocumentsResponseDeserializer (Class <T > userDataClass ) {
113- return (response , ctx ) -> {
113+ return (response ) -> {
114114 final MultiDocumentEntity <DocumentCreateEntity <T >> multiDocument = new MultiDocumentEntity <>();
115115 final List <DocumentCreateEntity <T >> docs = new ArrayList <>();
116116 final List <ErrorEntity > errors = new ArrayList <>();
@@ -119,12 +119,12 @@ protected <T> ResponseDeserializer<MultiDocumentEntity<DocumentCreateEntity<T>>>
119119 for (final JsonNode next : body ) {
120120 JsonNode isError = next .get (ArangoResponseField .ERROR_FIELD_NAME );
121121 if (isError != null && isError .booleanValue ()) {
122- final ErrorEntity error = getSerde ().deserialize (next , ErrorEntity .class , ctx );
122+ final ErrorEntity error = getSerde ().deserialize (next , ErrorEntity .class );
123123 errors .add (error );
124124 documentsAndErrors .add (error );
125125 } else {
126126 Type type = constructParametricType (DocumentCreateEntity .class , userDataClass );
127- final DocumentCreateEntity <T > doc = getSerde ().deserialize (next , type , ctx );
127+ final DocumentCreateEntity <T > doc = getSerde ().deserialize (next , type );
128128 docs .add (doc );
129129 documentsAndErrors .add (doc );
130130 }
@@ -168,7 +168,7 @@ protected InternalRequest getDocumentRequest(final String key, final DocumentRea
168168 }
169169
170170 protected <T > ResponseDeserializer <T > getDocumentResponseDeserializer (final Class <T > type ) {
171- return (response , ctx ) -> getSerde ().deserializeUserData (response .getBody (), type , ctx );
171+ return (response ) -> getSerde ().deserializeUserData (response .getBody (), type );
172172 }
173173
174174 protected InternalRequest getDocumentsRequest (final Iterable <String > keys , final DocumentReadOptions options ) {
@@ -186,7 +186,7 @@ protected InternalRequest getDocumentsRequest(final Iterable<String> keys, final
186186
187187 protected <T > ResponseDeserializer <MultiDocumentEntity <T >> getDocumentsResponseDeserializer (
188188 final Class <T > type ) {
189- return (response , ctx ) -> {
189+ return (response ) -> {
190190 final MultiDocumentEntity <T > multiDocument = new MultiDocumentEntity <>();
191191 boolean potentialDirtyRead = Boolean .parseBoolean (response .getMeta ("X-Arango-Potential-Dirty-Read" ));
192192 multiDocument .setPotentialDirtyRead (potentialDirtyRead );
@@ -197,11 +197,11 @@ protected <T> ResponseDeserializer<MultiDocumentEntity<T>> getDocumentsResponseD
197197 for (final JsonNode next : body ) {
198198 JsonNode isError = next .get (ArangoResponseField .ERROR_FIELD_NAME );
199199 if (isError != null && isError .booleanValue ()) {
200- final ErrorEntity error = getSerde ().deserialize (next , ErrorEntity .class , ctx );
200+ final ErrorEntity error = getSerde ().deserialize (next , ErrorEntity .class );
201201 errors .add (error );
202202 documentsAndErrors .add (error );
203203 } else {
204- final T doc = getSerde ().deserializeUserData (getSerde ().serialize (next ), type , ctx );
204+ final T doc = getSerde ().deserializeUserData (getSerde ().serialize (next ), type );
205205 docs .add (doc );
206206 documentsAndErrors .add (doc );
207207 }
@@ -249,7 +249,7 @@ private InternalRequest createReplaceDocumentRequest(final DocumentReplaceOption
249249
250250 protected <T > ResponseDeserializer <MultiDocumentEntity <DocumentUpdateEntity <T >>> replaceDocumentsResponseDeserializer (
251251 final Class <T > returnType ) {
252- return (response , ctx ) -> {
252+ return (response ) -> {
253253 final MultiDocumentEntity <DocumentUpdateEntity <T >> multiDocument = new MultiDocumentEntity <>();
254254 final List <DocumentUpdateEntity <T >> docs = new ArrayList <>();
255255 final List <ErrorEntity > errors = new ArrayList <>();
@@ -258,12 +258,12 @@ protected <T> ResponseDeserializer<MultiDocumentEntity<DocumentUpdateEntity<T>>>
258258 for (final JsonNode next : body ) {
259259 JsonNode isError = next .get (ArangoResponseField .ERROR_FIELD_NAME );
260260 if (isError != null && isError .booleanValue ()) {
261- final ErrorEntity error = getSerde ().deserialize (next , ErrorEntity .class , ctx );
261+ final ErrorEntity error = getSerde ().deserialize (next , ErrorEntity .class );
262262 errors .add (error );
263263 documentsAndErrors .add (error );
264264 } else {
265265 Type type = constructParametricType (DocumentUpdateEntity .class , returnType );
266- final DocumentUpdateEntity <T > doc = getSerde ().deserialize (next , type , ctx );
266+ final DocumentUpdateEntity <T > doc = getSerde ().deserialize (next , type );
267267 docs .add (doc );
268268 documentsAndErrors .add (doc );
269269 }
@@ -312,7 +312,7 @@ private InternalRequest createUpdateDocumentRequest(final DocumentUpdateOptions
312312
313313 protected <T > ResponseDeserializer <MultiDocumentEntity <DocumentUpdateEntity <T >>> updateDocumentsResponseDeserializer (
314314 final Class <T > returnType ) {
315- return (response , ctx ) -> {
315+ return (response ) -> {
316316 final MultiDocumentEntity <DocumentUpdateEntity <T >> multiDocument = new MultiDocumentEntity <>();
317317 final List <DocumentUpdateEntity <T >> docs = new ArrayList <>();
318318 final List <ErrorEntity > errors = new ArrayList <>();
@@ -321,12 +321,12 @@ protected <T> ResponseDeserializer<MultiDocumentEntity<DocumentUpdateEntity<T>>>
321321 for (final JsonNode next : body ) {
322322 JsonNode isError = next .get (ArangoResponseField .ERROR_FIELD_NAME );
323323 if (isError != null && isError .booleanValue ()) {
324- final ErrorEntity error = getSerde ().deserialize (next , ErrorEntity .class , ctx );
324+ final ErrorEntity error = getSerde ().deserialize (next , ErrorEntity .class );
325325 errors .add (error );
326326 documentsAndErrors .add (error );
327327 } else {
328328 Type type = constructParametricType (DocumentUpdateEntity .class , returnType );
329- final DocumentUpdateEntity <T > doc = getSerde ().deserialize (next , type , ctx );
329+ final DocumentUpdateEntity <T > doc = getSerde ().deserialize (next , type );
330330 docs .add (doc );
331331 documentsAndErrors .add (doc );
332332 }
@@ -368,7 +368,7 @@ private InternalRequest createDeleteDocumentRequest(final DocumentDeleteOptions
368368
369369 protected <T > ResponseDeserializer <MultiDocumentEntity <DocumentDeleteEntity <T >>> deleteDocumentsResponseDeserializer (
370370 final Class <T > userDataClass ) {
371- return (response , ctx ) -> {
371+ return (response ) -> {
372372 final MultiDocumentEntity <DocumentDeleteEntity <T >> multiDocument = new MultiDocumentEntity <>();
373373 final List <DocumentDeleteEntity <T >> docs = new ArrayList <>();
374374 final List <ErrorEntity > errors = new ArrayList <>();
@@ -377,12 +377,12 @@ protected <T> ResponseDeserializer<MultiDocumentEntity<DocumentDeleteEntity<T>>>
377377 for (final JsonNode next : body ) {
378378 JsonNode isError = next .get (ArangoResponseField .ERROR_FIELD_NAME );
379379 if (isError != null && isError .booleanValue ()) {
380- final ErrorEntity error = getSerde ().deserialize (next , ErrorEntity .class , ctx );
380+ final ErrorEntity error = getSerde ().deserialize (next , ErrorEntity .class );
381381 errors .add (error );
382382 documentsAndErrors .add (error );
383383 } else {
384384 Type type = constructParametricType (DocumentDeleteEntity .class , userDataClass );
385- final DocumentDeleteEntity <T > doc = getSerde ().deserialize (next , type , ctx );
385+ final DocumentDeleteEntity <T > doc = getSerde ().deserialize (next , type );
386386 docs .add (doc );
387387 documentsAndErrors .add (doc );
388388 }
@@ -413,7 +413,7 @@ protected InternalRequest deleteIndexRequest(final String id) {
413413 }
414414
415415 protected ResponseDeserializer <String > deleteIndexResponseDeserializer () {
416- return (response , ctx ) -> getSerde ().deserialize (response .getBody (), "/id" , String .class , ctx );
416+ return (response ) -> getSerde ().deserialize (response .getBody (), "/id" , String .class );
417417 }
418418
419419 private String createIndexId (final String id ) {
@@ -495,23 +495,23 @@ protected InternalRequest getIndexesRequest() {
495495 }
496496
497497 protected ResponseDeserializer <Collection <IndexEntity >> getIndexesResponseDeserializer () {
498- return (response , ctx ) -> {
498+ return (response ) -> {
499499 Collection <IndexEntity > indexes = new ArrayList <>();
500500 for (JsonNode idx : getSerde ().parse (response .getBody (), "/indexes" )) {
501501 if (!"inverted" .equals (idx .get ("type" ).textValue ())) {
502- indexes .add (getSerde ().deserialize (idx , IndexEntity .class , ctx ));
502+ indexes .add (getSerde ().deserialize (idx , IndexEntity .class ));
503503 }
504504 }
505505 return indexes ;
506506 };
507507 }
508508
509509 protected ResponseDeserializer <Collection <InvertedIndexEntity >> getInvertedIndexesResponseDeserializer () {
510- return (response , ctx ) -> {
510+ return (response ) -> {
511511 Collection <InvertedIndexEntity > indexes = new ArrayList <>();
512512 for (JsonNode idx : getSerde ().parse (response .getBody (), "/indexes" )) {
513513 if ("inverted" .equals (idx .get ("type" ).textValue ())) {
514- indexes .add (getSerde ().deserialize (idx , InvertedIndexEntity .class , ctx ));
514+ indexes .add (getSerde ().deserialize (idx , InvertedIndexEntity .class ));
515515 }
516516 }
517517 return indexes ;
@@ -583,8 +583,8 @@ protected InternalRequest getPermissionsRequest(final String user) {
583583 }
584584
585585 protected ResponseDeserializer <Permissions > getPermissionsResponseDeserialzer () {
586- return (response , ctx ) -> getSerde ().deserialize (response .getBody (), ArangoResponseField .RESULT_JSON_POINTER ,
587- Permissions .class , ctx );
586+ return (response ) -> getSerde ().deserialize (response .getBody (), ArangoResponseField .RESULT_JSON_POINTER ,
587+ Permissions .class );
588588 }
589589
590590}
0 commit comments