8000 API variance fixes · arangodb/spring-data@db359f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit db359f7

Browse files
committed
API variance fixes
1 parent f95c012 commit db359f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/com/arangodb/springframework/core/ArangoOperations.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ <T> MultiDocumentEntity<DocumentUpdateEntity<T>> updateAll(
209209
* @return information about the documents
210210
* @throws DataAccessException
211211
*/
212-
<T> MultiDocumentEntity<DocumentUpdateEntity<?>> updateAll(Iterable<T> values, Class<T> entityClass) throws DataAccessException;
212+
<T> MultiDocumentEntity<DocumentUpdateEntity<?>> updateAll(Iterable<? extends T> values, Class<T> entityClass) throws DataAccessException;
213213

214214
/**
215215
* Partially updates the document identified by document id or key. The value must contain a document with the
@@ -384,7 +384,7 @@ <T> MultiDocumentEntity<DocumentCreateEntity<T>> insertAll(
384384
* @return information about the documents
385385
* @throws DataAccessException
386386
*/
387-
MultiDocumentEntity<DocumentCreateEntity<?>> insertAll(Iterable<?> values, Class<?> entityClass)
387+
<T> MultiDocumentEntity<DocumentCreateEntity<?>> insertAll(Iterable<? extends T> values, Class<T> entityClass)
388388
throws DataAccessException;
389389

390390
/**

src/main/java/com/arangodb/springframework/core/template/ArangoTemplate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ public <T> MultiDocumentEntity<DocumentUpdateEntity<T>> updateAll(
368368
@Override
369369
@SuppressWarnings({"rawtypes", "unchecked"})
370370
public <T> MultiDocumentEntity<DocumentUpdateEntity<?>> updateAll(
371-
final Iterable<T> values,
371+
final Iterable<? extends T> values,
372372
final Class<T> entityClass
373373
) throws DataAccessException {
374374
return updateAll(values, new DocumentUpdateOptions(), (Class) entityClass);
@@ -513,7 +513,7 @@ public <T> MultiDocumentEntity<DocumentCreateEntity<T>> insertAll(
513513

514514
@Override
515515
@SuppressWarnings({"unchecked", "rawtypes"})
516-
public MultiDocumentEntity<DocumentCreateEntity<?>> insertAll(Iterable<?> values, Class<?> entityClass) throws DataAccessException {
516+
public <T> MultiDocumentEntity<DocumentCreateEntity<?>&g 49E1 t; insertAll(Iterable<? extends T> values, Class<T> entityClass) throws DataAccessException {
517517
return insertAll(values, new DocumentCreateOptions(), (Class) entityClass);
518518
}
519519

0 commit comments

Comments
 (0)
0